Re: windowWithWindowNumber: ?
Re: windowWithWindowNumber: ?
- Subject: Re: windowWithWindowNumber: ?
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 27 Sep 2002 22:27:38 +0100
On Friday, September 27, 2002, at 10:00 pm, Steven M.Palm wrote:
I have a category of NSApplication, and the following doesn't work
(returns nil):
window = [self windowWithWindowNumber:0];
I'm pretty sure windowNumber refers to the CGSWindowNumber of the
window, an internal reference number that you shouldn't really have to
deal with, I think. It may have been more useful under
OpenStep/Rhapsody and DPS, but I never used those platforms :-)
You can get the window number of a window from its -windowNumber
method. There appear to be functions for "translating" from app to
global window numbers, but I think that these may in fact be the same
in OS X. I haven't really investigated CGS for months, though, so don't
quote me on that :-)
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.