• 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:NSCountWindowsForContext : How to get the context ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:NSCountWindowsForContext : How to get the context ?


  • Subject: Re:NSCountWindowsForContext : How to get the context ?
  • From: jean Bousquet <email@hidden>
  • Date: Mon, 19 Aug 2002 15:33:40 +0200

le 15/08/02 14:29, Jeremy Dronfield ` email@hidden a icrit :

> On Thursday, August 15, 2002, at 09:57 am, jean Bousquet wrote:
>
>> NSCountWindows counts the number of on-screen windows belonging to an
>> application.
>
> No, NSCountWindows counts _all_ on-screen windows. To get the windows
> belonging to your app, you need NSCountWindowsForContext. You can also
> use [[NSApp windows] count], but as this includes off-screen windows in
> the count it may be no use to you.
>
> -Jeremy
>
> =======================================
> email@hidden // email@hidden
> The Alchemy Pages:
> - fractious fiction at http://freespace.virgin.net/jeremy.dronfield
>
>

Thanks,
my doc (theApplKit.pdf) stated of "the number of on-screen windows belonging
to an application". My doc was not up to date and wrong, I updated it.
NSCountWindowsForContext (also NSWindowListForContext) needs an argument
(int context) "to identify the application".
I browsed the ApplKit to get how it is possible to get this int context to
identify the application but without success.
Does any body know how to get this identifier or where it is documented ?
Thanks
Jean
_______________________________________________
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: 
 >Re: NSCountWindows (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: Auto Threading of NSProgressIndicator
  • Next by Date: Problem with defining an opaque structure
  • Previous by thread: Re: NSCountWindows
  • Next by thread: URL parsing
  • Index(es):
    • Date
    • Thread