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: "Adam R. Maxwell" <email@hidden>
- Date: Sat, 07 Jun 2008 09:49:21 -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.
Look at the docs for NSApplication and NSDocumentController (if your
app is NSDocument based), specifically -[NSApp mainWindow] and -
[NSDocumentController currentDocument]. From those or related methods
you should be able to find your view.
--
Adam
_______________________________________________
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