• 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 11:48:02 -0800


On Dec 10, 2009, at 10:39 AM, Emmanuel Pinault wrote:


I am trying to create a small item in the status bar, which when I click, I can show at a glance a small calendar... kind of like how Gnome does it. Really convenient and better than loading the full dashboard at times.. Anyway I using rubycocoa and this is the code I am trying to have to work.


I should clarify that all I am trying to do is to get the initial position of the new item on the status bar to position a small window (like a contextual menu) right under that icon when clicking on it.


Have you tried using [NSStatusItem setView:]?


IThe hackFrame method was returning the result of a the [ _fWindow Frame] method. But if I cannot access the _fWindow since it is private, not sure how else I can

I will look at those methods then. But this is what I am up to (using RubyCocoa)

  statusbar = NSStatusBar.systemStatusBar
  @item = statusbar.statusItemWithLength(NSVariableStatusItemLength)
  image = NSImage.alloc.initWithContentsOfFile("cal.png")
  @item.setImage(image)
  @item.setAction :clicked

calendarController = CalendarController.alloc.initWithPosition(@item.hackFrame) <== I need the frame here


-lance



_______________________________________________

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

  • Prev by Date: Suspend the execution of background thread on modal window launch
  • Next by Date: Re: [iPhone] UINavigationController and UINavigationBar
  • Previous by thread: Re: Problem with missing symbol
  • Next by thread: Re: Problem with missing symbol
  • Index(es):
    • Date
    • Thread