• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getting the window id from anywhere in the program?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >getting the window id from anywhere in the program? (From: Mark Ogilvie <email@hidden>)

  • Prev by Date: getting the window id from anywhere in the program?
  • Next by Date: Re: getting the window id from anywhere in the program?
  • Previous by thread: getting the window id from anywhere in the program?
  • Next by thread: Re: getting the window id from anywhere in the program?
  • Index(es):
    • Date
    • Thread