• 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: 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


  • Follow-Ups:
    • Re: Finding front view in a Cocoa app
      • From: Jerry Krinock <email@hidden>
References: 
 >Finding front view in a Cocoa app (From: John James <email@hidden>)

  • Prev by Date: Re: Cocoa n00b frustrations
  • Next by Date: Re: Java and Objective-C
  • Previous by thread: Re: Finding front view in a Cocoa app
  • Next by thread: Re: Finding front view in a Cocoa app
  • Index(es):
    • Date
    • Thread