• 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: Dock position and size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dock position and size


  • Subject: Re: Dock position and size
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 14 Feb 2010 13:01:14 -0600

If you're looking for the portion of the screen which is or is not occupied by the Dock, you can check -[NSScreen visibleFrame].

I believe, but am not certain, that the NSApplicationDidChangeScreenParametersNotification notification is posted (and the -applicationDidChangeScreenParameters: application delegate method is called) when the size and/or position of the Dock changes.

-Ken

On Feb 14, 2010, at 12:37 PM, Steven Degutis wrote:

> The only ways I can think of are through the Accessibility API (which must
> be enabled in the user's System Preferences for this to work) or by asking
> com.apple.dock.plist ... though, generally this kind of thing is not
> necessary (which explains why there is no formal API for it). I would
> suggest looking into alternatives like hiding the Dock and Menu Bar from the
> user, if that's your concern.
>
> -Steven
>
> On Sun, Feb 14, 2010 at 1:10 PM, Sandro Noël <email@hidden>wrote:
>
>> Greetings.
>>
>> Is there a way to determine the dock position on screen (left, right,
>> bottom) and it's (width - height) ?
>>
>> thank you!
>>
>>
>> Sandro Noël
>>
>> _______________________________________________
>>
>> 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
>>
>
>
>
> --
> Steven Degutis
> http://www.thoughtfultree.com/
> http://www.degutis.org/
> _______________________________________________
>
> 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

References: 
 >Dock position and size (From: Sandro Noël <email@hidden>)
 >Re: Dock position and size (From: Steven Degutis <email@hidden>)

  • Prev by Date: Re: Dock position and size
  • Next by Date: Re: Dock position and size
  • Previous by thread: Re: Dock position and size
  • Next by thread: Re: Dock position and size
  • Index(es):
    • Date
    • Thread