Re: getting the window id from anywhere in the program?
Re: getting the window id from anywhere in the program?
- Subject: Re: getting the window id from anywhere in the program?
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 1 May 2003 14:50:55 -0700
On Thursday, May 1, 2003, at 02:38 PM, Mark Ogilvie wrote:
Is there a way to get the window number of where something is? For
example if I have an NSTextView and and NSButton in the same window.
The NSButton is linked to an IBAction and for contents of the
NSTextView I can get the NSTextStorage behind the view. Is there a way
to get the window id as well?
You can ask any view for its window.
NSWindow *windowIWant = [myView window];
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.