Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting NSWindow windownumber ?



Dear Rose,

you can get the window number this way. No need for private APIs:

#include <objc/objc.h>

int GetNSWindowNumber( void* inNSWindow )
{
int number = -1;
SEL sel = sel_registerName("windowNumber");

if( sel )
number = objc_msgSend( inNSWindow, sel );

return number;
}

Cheers,

  Tomas Zahradnicky

On Jan 11, 2007, at 19:44 , Rosemary Quince wrote:


Is it possible to obtain the NSWindow windowNumber from Carbon?  If so, how?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Getting NSWindow windownumber ? (From: Rosemary Quince <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.