Re: Filling screen under menu bar and above dock
Re: Filling screen under menu bar and above dock
- Subject: Re: Filling screen under menu bar and above dock
- From: Memo Akten <email@hidden>
- Date: Mon, 09 Jun 2008 06:30:32 -0600
- Domainkey-status: no signature
- Organization: MSA Visuals Ltd.
thanks! works great!
On Mon, 9 Jun 2008 07:27:01 -0400, "douglas a. welton"
<email@hidden> wrote:
> Check out NSScreen documentation for the -(NSRect)visibleFrame method.
>
> On Jun 9, 2008, at 6:49 AM, Memo Akten wrote:
>
>> <email@hidden>
> <email@hidden
>> >
>> Message-ID: <9f6ff44635ba19fb37b598ce90ff5571@localhost>
>> X-Sender: email@hidden
>> Received: from 82-68-202-222.dsl.in-addr.zen.co.uk [82.68.202.222]
>> with
>> HTTP/1.1 (POST); Mon, 09 Jun 2008 04:49:35 -0600
>> User-Agent: RoundCube Webmail/0.1-rc2
>> Content-Type: text/plain; charset="UTF-8"
>> Content-Transfer-Encoding: 8bit
>>
>>
>> <pre>Hi All, i would like to create an NSWindow that fills the space
>> above
>> the dock and below the menubar and I couldn't find exactly how to do
>> it.</pre><pre>I tried:</pre><p style="font: normal normal normal
>> 10px/normal Monaco; margin: 0px"><span class="Apple-tab-span"
>> style="white-space: pre"> </span><span style="color:
>> #3f6e74">windowRect</span> = <span style="color:
>> #2e0d6e">NSMakeRect</span>(<span style="color: #1c00cf">0</span>,
>> <span
>> style="color: #1c00cf">0</span>, <span style="color: #1c00cf">100</
>> span>,
>> <span style="color: #1c00cf">100</span>);</p><p style="font: normal
>> normal
>> normal 10px/normal Monaco; color: #2e0d6e; margin: 0px"><span
>> style="color:
>> #000000"><span class="Apple-tab-span" style="white-space:
>> pre"> </span></span><span style="color: #3f6e74">mainWindow</
>> span><span
>> style="color: #000000"> = [[</span><span style="color:
>> #5c2699">NSWindow</span><span style="color: #000000"> </
>> span>alloc<span
>> style="color: #000000">] </span>initWithContentRect<span style="color:
>> #000000">:</span><span style="color: #3f6e74">windowRect</span><span
>> style="color: #000000"> </span>styleMask<span style="color:
>> #000000">:</span>NSBorderlessWindowMask<span style="color: #000000">
>> </span>backing<span style="color:
>> #000000">:</span>NSBackingStoreBuffered<span style="color: #000000">
>> </span>defer<span style="color: #000000">:</span><span style="color:
>> #aa0d91">NO</span><span style="color: #000000">];</span></p><pre><span
>> class="Apple-style-span" style="color: #3f6e74; font-family: Monaco;
>> font-size: 10px; white-space: normal"><span style="color:
>> #000000"><span
>> class="Apple-tab-span" style="white-space:
>> pre"> </span></span>windowRect<span style="color: #000000">.</
>> span><span
>> style="color: #5c2699">size</span><span style="color: #000000"> =
>> [</span>mainWindow<span style="color: #000000"> </span><span
>> style="color:
>> #2e0d6e">maxSize</span><span style="color:
>> #000000">];;</span></span> </pre><pre> But that didn't work
>> (maxSize is not initiallized)</pre><pre>I also tried initting the
>> window
>> with windowRect = NSMakeRect(0, 0,
>> CGDisplayPixelsWide(kCGDirectMainDisplay),
>> CGDisplayPixelsHigh(kCGDirectMainDisplay));</pre><pre>but that seems
>> to be
>> the full screen height ... where do I find the numbers that I
>> need?</pre><pre> Cheers,</pre><pre>Memo. </pre>
>>
>> _______________________________________________
>>
>> 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
--
----------------------------
Mehmet S. Akten
email@hidden
www.memo.tv
+44 7958 783 832
+44 20 8123 9986
29 Ironworks
Dace Rd.
London E3 2NX
UK
_______________________________________________
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