Re: Dock Height ?
Re: Dock Height ?
- Subject: Re: Dock Height ?
- From: email@hidden
- Date: Thu, 6 Oct 2005 17:56:33 +0200
Dear List
Thanks for the help, the visibleFrame is great, since I just needed
to find out where to position a window.
Vincent
>
>
>
>---- Original Message ----
>From: email@hidden
>To: email@hidden
>Subject: Re: Dock Height ?
>Date: Thu, 6 Oct 2005 16:52:19 +0100
>
>> NSScreen *screen = [NSScreen mainScreen];
>> NSRect screenFrame = [screen frame];
>> NSRect screenVisibleFrame = [screen visibleFrame];
>>The visible frame takes into account the menubar and the dock. You
>>should be able to compute the dock height from that, assuming the
>dock
>>is at the bottom of the screen...Don't know if you can find out the
>>position of the dock and its mode (e.g. hidden or not)
>>--Simon
>>
>>On 10/6/05, email@hidden <email@hidden>
>wrote:
>>> Dear List,
>>>
>>> I have Googled and searched the docs without success (before
>anyone
>>> flames me). Does someone know how to programmatically ascertain
>the
>>> Dock height ?
>>>
>>> Thanks in advance
>>>
>>> Vincent
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Cocoa-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>.com
>>>
>>> This email sent to email@hidden
>>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden