• 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: windowWithWindowNumber: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >windowWithWindowNumber: ? (From: "Steven M.Palm" <email@hidden>)

  • Prev by Date: Re: What type of "thing" do I want?
  • Next by Date: Re: Brain Fade with NSView layout
  • Previous by thread: windowWithWindowNumber: ?
  • Next by thread: IntraApp communication....
  • Index(es):
    • Date
    • Thread