• 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: Emmanuel Pinault <email@hidden>
  • Date: Thu, 10 Dec 2009 10:33:42 -0800

On Dec 10, 2009, at 10:24 AM, lbland wrote:

>
> On Dec 10, 2009, at 1:15 PM, Emmanuel Pinault wrote:
>
>> How would you suggest I get the Frame information from the window then?
>
> hi-
>
> Don't know what you're up to, but this NSWindow method:
>
> +frameRectForContentRect:styleMask:
>
> has been around for a long time.
>
> also, this one:
>
> - frameRectForContentRect:(NSRect)windowContent
>
> thanks!-

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.

The 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

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

  • Prev by Date: Re: Problem with missing symbol
  • Next by Date: Re: Problem with missing symbol
  • Previous by thread: Re: Problem with missing symbol
  • Next by thread: Re: Problem with missing symbol
  • Index(es):
    • Date
    • Thread