Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSWindow setStyleMask triggers exception in 10.5.8 #361

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

NSWindow setStyleMask triggers exception in 10.5.8 #361

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: Mac OS X 10.5 (PPC), PowerPC

Comments on the original bug report:

On 2011-02-19 11:49:08 +0000, Jesse Anders wrote:

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.

On 2011-02-19 12:00:22 +0000, Sam Lantinga wrote:

Ah thanks, this is actually really useful information drastically affecting a problem I've been wrestling with the past few days.

On 2011-02-20 13:49:56 +0000, Sam Lantinga wrote:

Fixed, thanks!
http://hg.libsdl.org/SDL/rev/1d9e27849ed9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant