Sure - my point was to point out the new 10.6 API. For this particular case, I would simply go with SetSystemUIMode on all OS'es.
Pro: - You have to use SetSystemUIMode on 10.5 - The code is simpler with using a single API - Your testing effort will not require a reboot between 10.5 & 10.6 when you change your UI modes Cons: <none> Jesper On Jan 26, 2010, at 9:36 PM, Charles Srstka wrote: > On Jan 26, 2010, at 10:39 PM, Jesper Storm Bache wrote: > >> I don't have the entire thread on this machine so I apologize if I am >> repeating someone else. >> >> When you are ready do say "10.6 and above", then you can consider using >> [NSApplication setPresentationOptions] >> In the meantime SetSystemUIMode works well in both 32 and 64 bit binaries. >> >> Jesper Storm Bache > > Or you could just do something like this: > > if(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) > { > [NSApp setPresentationOptions:whatever]; > } > else > { > SetSystemUIMode(whatever); > } > > You could also use if([NSApp > respondsToSelector:@selector(setPresentationOptions:)) if you prefer. I like > to explicitly test for the version number though, so that once I *am* ready > to say “10.6 and above”, it’s easy to search for and remove all the > compatibility cruft that’s in there to make older versions work. > > Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com