OK, so to put it another way. What is [NSWindow windowRef] really
intended for. The documentation is a bit vague and misleading:
****
Discussion
This method can be used to create a WindowRef for a window
containing a Carbon control. Subsequent calls to this method return
the existing WindowRef.
I would have thought it was just an accessor to get the windowRef you
passed in to the initWithWindowRef. This makes it sound like it's
possible to obtain a WindowRef from an NSWindow such that you didn't
call initWithWindowRef.
For more information see MacWindows.h.
****
Is it really only intended to be used on NSWindows that were
created using [NSWindow initWithWindowRef:], and as such are 'real'
Carbon windows with an NSWindow wrapper.
As far as I know, it is not possible to have a genuine Cocoa
NSWindow with 'a Carbon control'.
If it's truly the case where the windowRef API can only ever be used
on instances where you did initWithWindowRef:, then a documentation
enhancement should be filed to clear that up.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden