Re: anotherDockProgram-help
Re: anotherDockProgram-help
- Subject: Re: anotherDockProgram-help
- From: Alan Smith <email@hidden>
- Date: Mon, 23 Jan 2006 17:50:59 -0500
Um, ok. I did figure it out, a couple of days ago, but thanks for the reply.
The thing I didn't get was how to make a window use that subclass as its
class. You have to select the "Custom Class" pop-up menu in IB and then
choose your subclass. I haven't used subclasses (except in NSObject) before
this so didn't know how to use them. The two things that enabled me to
figure the borderless window thing was: a small app called SplashScreenDemo2
(or something) that I found online, and another small app called
RoundTransparentWindow, that was mentioned here, in a reply to my questions.
Thanks for the help, and for now I have no more questions (I just need to do
some coding). But if anyone wants to help me with this, off the list, the
aid would be greatly appreciated, Alan
On 1/21/06, Uli Kusterer <email@hidden> wrote:
>
> Am 21.01.2006 um 16:38 schrieb Alan Smith:
> > Thanks, guys! I just googled NDAlias and found the developers home
> > page, so I think that I wouldn't have any problem implementing
> > that. But how do you subclass NSWindow? The only way I can think of
> > is through IB. Just like subclassing NSObject. But then how do you
> > change the flag? Do you link the window to the subclass and then in
> > the .m file change it?
> > I just hope you all don't find this to trivial and leave me in the
> > dark.
>
> You subclass it just like any other class:
>
> Create a new file in Xcode from the Objective-C-Class template and
> then change the mention of NSObject into NSWindow. Then find the
> designated initialiser for NSWindow in the documentation and make
> sure you provide that method in your subclass, calling through to
> super to do the actual work.
>
> What you do from then on I already detailed in my previous message.
>
> If that's news to you, you might want to brush up a little on that
> aspect of Objective C, using either Hillegass' book, or Apple's PDF
> on ObjC (free download from developer.apple.com).
>
> Cheers,
> -- M. Uli Kusterer
> http://www.zathras.de
>
>
>
_______________________________________________
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