You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/06/03 16:08:49 UTC
svn commit: r1488999 -
/openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm
Author: hdu
Date: Mon Jun 3 14:08:48 2013
New Revision: 1488999
URL: http://svn.apache.org/r1488999
Log:
#i121406# #i119006# fix NSWindow's performSelector:withObject type
NSWindow uses the type-casted plain integers
instead of the boxed number objects (aka NSNumber)
Modified:
openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm
Modified: openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm?rev=1488999&r1=1488998&r2=1488999&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm (original)
+++ openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm Mon Jun 3 14:08:48 2013
@@ -169,15 +169,14 @@ static AquaSalFrame* getMouseContainerFr
const SEL setCollectionBehavior = @selector(setCollectionBehavior:);
if( bAllowFullScreen && [pNSWindow respondsToSelector: setCollectionBehavior])
{
- NSNumber* bMode = [NSNumber numberWithInt:(bAllowFullScreen ? NSWindowCollectionBehaviorFullScreenPrimary : NSWindowCollectionBehaviorFullScreenAuxiliary)];
- [pNSWindow performSelector:setCollectionBehavior withObject:bMode];
+ const int bMode= (bAllowFullScreen ? NSWindowCollectionBehaviorFullScreenPrimary : NSWindowCollectionBehaviorFullScreenAuxiliary);
+ [pNSWindow performSelector:setCollectionBehavior withObject:(id)bMode];
}
// disable OSX>=10.7 window restoration until we support it directly
const SEL setRestorable = @selector(setRestorable:);
if( [pNSWindow respondsToSelector: setRestorable]) {
- NSNumber* bNO = [NSNumber numberWithBool:NO];
- [pNSWindow performSelector:setRestorable withObject:bNO];
+ [pNSWindow performSelector:setRestorable withObject:(id)NO];
}
return pNSWindow;