• 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: Problem with missing symbol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with missing symbol


  • Subject: Re: Problem with missing symbol
  • From: Lee Ann Rucker <email@hidden>
  • Date: Thu, 10 Dec 2009 14:45:33 -0800


On Dec 10, 2009, at 1:24 PM, Emmanuel Pinault wrote:



Have you tried using [NSStatusItem setView:]?



setView is for custom view.. Because if I dont do a setView, the view Method return nil so far. And looking at the doc it mentions that it is for custom view.

I am looking at something similar called MAAAttachedWindow class made by someone else. Seems like the way around is to actually use a custom view in a way. The developer seem to use the NSScreen and some other logic to figure out based on where you click (so on the status item in the bar) and get the exact point of the click. Then he calculate where his custom view and window should be displayed.


Right. "Custom view" just means a view where you put your own UI; it doesn't have to be a subclass of NSView. It would be a lot easier than creating a window - which contains an NSView, if it's Cocoa - and working out where to show it; all that work is done for you.



Thanks

Emmanuel

_______________________________________________

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: Problem with missing symbol
      • From: Emmanuel Pinault <email@hidden>
References: 
 >Problem with missing symbol (From: Emmanuel Pinault <email@hidden>)
 >Re: Problem with missing symbol (From: Kyle Sluder <email@hidden>)
 >Re: Problem with missing symbol (From: Emmanuel Pinault <email@hidden>)
 >Re: Problem with missing symbol (From: lbland <email@hidden>)
 >Re: Problem with missing symbol (From: Emmanuel Pinault <email@hidden>)
 >Re: Problem with missing symbol (From: Emmanuel Pinault <email@hidden>)
 >Re: Problem with missing symbol (From: Lee Ann Rucker <email@hidden>)
 >Re: Problem with missing symbol (From: Emmanuel Pinault <email@hidden>)

  • Prev by Date: dynamically create/remove IB elements and instance vars?
  • Next by Date: Re: dynamically create/remove IB elements and instance vars?
  • Previous by thread: Re: Problem with missing symbol
  • Next by thread: Re: Problem with missing symbol
  • Index(es):
    • Date
    • Thread