Re: Which app owns the menu bar?
Re: Which app owns the menu bar?
- Subject: Re: Which app owns the menu bar?
- From: Scott Guelich <email@hidden>
- Date: Thu, 18 Oct 2007 15:35:44 -0400
On Oct 18, 2007, at 3:03 PM, Scott Guelich wrote:
Hmm, that's odd. I would not expect that. Is that on Tiger or
Leopard?
So I just rebooted into Tiger, created a brand new Xcode project,
added LSUIElement to the plist file, added a delegate class and
dropped this into awakeFromNib:
NSLog(@"[NSWorkspace activeApplication]: %@", [[NSWorkspace
sharedWorkspace] activeApplication]);
ProcessSerialNumber psn;
OSErr err;
err = GetFrontProcess(&psn);
NSAssert1( err == noErr, @"Error calling GetFrontProcess: %d",
err );
NSLog(@"GetFrontProcess(): %@",
ProcessInformationCopyDictionary( &psn,
kProcessDictionaryIncludeAllInformationMask ) );
err = GetNextProcess(&psn);
NSAssert1( err == noErr, @"Error calling GetNextProcess: %d", err );
NSLog(@"GetNextProcess(): %@",
ProcessInformationCopyDictionary( &psn,
kProcessDictionaryIncludeAllInformationMask ) );
And it turns out that both -[NSWorkspace activeApplication] and
GetFrontProcess() return Xcode, as I'd wanted. GetNextProcess()
actually returns my test LSUIElement test app.
Unfortunately, when I boot back to Leopard and try that same new
project, I get something totally different. I suppose I'm still under
NDA for the next week... so I shouldn't post details to the list? I'll
definitely file a bug report or two and send you the numbers offline,
Eric. I'll also play around some more and see if it's a app launch
timing issue. Thanks both of you for the help.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden