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 - NSWindow setStyleMask triggers exception in 10.5.8
Summary: NSWindow setStyleMask triggers exception in 10.5.8
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: PowerPC Mac OS X 10.5 (PPC)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 11:49 UTC by Jesse Anders
Modified: 2011-02-20 13:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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