Re: App fails on Yosemite - "Cannot remove an observer"
Re: App fails on Yosemite - "Cannot remove an observer"
- Subject: Re: App fails on Yosemite - "Cannot remove an observer"
- From: Kyle Sluder <email@hidden>
- Date: Mon, 01 Dec 2014 12:54:17 -0800
On Dec 1, 2014, at 10:41 AM, Andreas Höschler <email@hidden> wrote:
>
> Hi Jerry and all,
>
>>> You should look for … overrides of superclass properties
>>
>> Yes, indeed. Search for the AppKit Release Notes for OS X 10.10 Yosemite and carefully read the section on tab views, wherein Apple has added alot of new stuff, which may be stepping on your old stuff.
>
> Thanks!
>
> Adding
>
> #ifdef __APPLE__
> - (void)setWindow:(NSWindow *)window
> {
> }
> #endif
>
> to my GSScrollView : NSScrollView subclass fixed (or at least worked around) the issue (no exception anymore and no apparent malfunction of the app).
WOAAAAAHHHH. This is NOT the way to solve this problem! NSView and NSScrollView (may) do important work in -setWindow:! You just haven't noticed what you’ve broken yet.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden