Re: Finding front view in a Cocoa app
Re: Finding front view in a Cocoa app
- Subject: Re: Finding front view in a Cocoa app
- From: Ron Lue-Sang <email@hidden>
- Date: Sat, 7 Jun 2008 22:38:01 -0700
On Jun 7, 2008, at 9:11 AM, John James wrote:
This seems like it should be easy, but I can not find anything with
various googles etc. I want to animate only my front view for
performance reasons. How do i determine the current top view
(document). I found something in carbon about FrontWindow, but I am
trying to stay in Cocoa.
Any suggestions?
thanks John
Try [[NSApplication sharedApplication] mainWindow]
Tho I believe this will be nil if the application isn't active (as in,
not the frontmost app).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden