We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1132

Summary: NSWindow setStyleMask triggers exception in 10.5.8
Product: SDL Reporter: Jesse Anders <jesseanders>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: jesseanders
Version: HG 2.0   
Hardware: PowerPC   
OS: Mac OS X 10.5 (PPC)   

Description Jesse Anders 2011-02-19 11:49:08 UTC
In SDL_cocoawindow.m, at lines 728 and 732, the calls to 'setStyleMask' trigger an exception in OS X 10.5.8.

The exception is:

-[SDLWindow setStyleMask:]: unrecognized selector sent to instance

When building in Xcode, the lines in question generate the following warning:

warning: 'NSWindow' may not respond to '-setStyleMask:'
(Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.)

The reference at:

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html%23//apple_ref/occ/instm/NSWindow/setStyleMask:

States that setStyleMask is available 'in Mac OS X v10.6 and later', which seems like it could be the cause of the problem.

Apologies if this is user error, and please let me know if you need any other info.
Comment 1 Sam Lantinga 2011-02-19 12:00:22 UTC
Ah thanks, this is actually really useful information drastically affecting a problem I've been wrestling with the past few days.
Comment 2 Sam Lantinga 2011-02-20 13:49:56 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/1d9e27849ed9