Re: full-screen window?
Re: full-screen window?
- Subject: Re: full-screen window?
- From: Rosyna <email@hidden>
- Date: Sun, 18 May 2003 13:31:56 -0700
You don't override initWithCoder: All you do is make a window in your
nib, go to the inspector in IB, go to the custom class popup and
choose your subclass of NSWindow. You only need to override the calls
you want to do something differently for. In this case, you want to
ignore initWithCoder: and use initWithContentRect:
Actually, apple has some sample code that does exactly this
http://developer.apple.com/samplecode/Sample_Code/Cocoa/RoundTransparentWindow.htm
Ack, at 5/18/03, M. Uli Kusterer said:
At 11:56 Uhr -0700 17.05.2003, Rosyna wrote:
Subclass the window then make the nib window an instance of your subclass ;)
Rosyna,
sorry if this is a fairly stupid question, but how exactly would I
do that? I mean, to have it instantiated from a NIB, I need to
override initWithCoder: and have my NSWindow subclass call through
to initWithCoder: so it does what it always does, however I can't
call initWithContentRect: *in addition* to that, can I?
Maybe it's the C++er in me, but I don't quite see how I can call
initWithContentRect: from initWithCoder: properly?
I guess this newbie here doesn't know something very fundamental to
Cocoa here, or maybe I'm just not seeing the forest for the trees?
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
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.