• 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: Custom NSWindow Subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSWindow Subclass


  • Subject: Re: Custom NSWindow Subclass
  • From: mw <email@hidden>
  • Date: Mon, 14 Oct 2002 07:00:44 -0400

On 10/13/02 11:41 PM, "Carlos A.Weber" <email@hidden> wrote:

>
> On Sunday, Oct 13, 2002, at 15:49 Pacific/Honolulu, mw wrote:
>
>> Hello,
>>
>> I would like to make my own custom subclass of NSWindow (the borderless
>> type). Most of you will probably start on me about how using borderless
>> windows is not kosher, and how there is some other way to go about it.
>> Well,
>> I have a window that is going to be made mainly up of custom NSView
>> subclasses, one of which is a titlebar, so I do not want the standard
>> Aqua
>> titlebar in my window.
>>
>> Now, I have subclassed NSWindow and made it the class type of the main
>> window in my nib file (this portion of my suite is not
>> document-based), and
>> I create the files and send them into my PB project.
>>
>> I need to know how to intercept the message (is it still init?) that
>> is sent
>> to the window when it needs to be initialized. This is because I need
>> to
>> call initWithContentRect:styleMask:styleMaskbacking:defer:
>> so I can set the styleMask attribute of the window to
>> NSBorderlessWindowMask. Then, if the message is still init, I would
>> return
>> from init with the object returned by
>> initWithContentRect:styleMask:styleMaskbacking:defer: so the window
>> would
>> have correct settings.
>>
>> Am I going about this correctly, or is there some other way to do it.
>
> Apple has an example which could help:
>
> http://developer.apple.com/samplecode/Sample_Code/Cocoa/
> RoundTransparentWindow.htm
>

Ah, okay. Thanks! Can anybody answer my second question?

Thanks,
mw
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Custom NSWindow Subclass (From: "Carlos A. Weber" <email@hidden>)

  • Prev by Date: Re: Displaying different languages in an NSTableView
  • Next by Date: Re: Jaguar Only Apps
  • Previous by thread: Re: Custom NSWindow Subclass
  • Next by thread: Automatic scrolling in an NSTextView
  • Index(es):
    • Date
    • Thread