• 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: Finding front view in a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Finding front view in a Cocoa app (From: John James <email@hidden>)

  • Prev by Date: Finding front view in a Cocoa app
  • Next by Date: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • Previous by thread: Finding front view in a Cocoa app
  • Next by thread: Re: Finding front view in a Cocoa app
  • Index(es):
    • Date
    • Thread