Re: [NSWindow document]?
Re: [NSWindow document]?
- Subject: Re: [NSWindow document]?
- From: Mike Abdullah <email@hidden>
- Date: Wed, 2 Dec 2009 00:25:14 +0000
On 2 Dec 2009, at 00:07, Andy Lee wrote:
> On Tuesday, December 01, 2009, at 06:36PM, "Kyle Sluder" <email@hidden> wrote:
>> On Tue, Dec 1, 2009 at 3:27 PM, Andy Lee <email@hidden> wrote:
>>> Is there documentation that confirms window.document as a property I'm allowed to use? Should I file a documentation bug, and/or should I file a request that window.document be made officially public?
>>
>> You should probably stick to going through the window controller
>> instead. That sounds like the safest bet to me.
>
> Makes sense. For some reason I thought window.document was buying us something, but it turns out window.windowController.document works fine, which makes sense since I would naively expect -[NSWindow document] to simply return [[self windowController] document] anyway.
Even if that is how it's implemented, bear in mind that it would probably not be key-value compliant._______________________________________________
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