Re: Apple's own template example is broken
Re: Apple's own template example is broken
- Subject: Re: Apple's own template example is broken
- From: Paul Scott <email@hidden>
- Date: Thu, 3 Sep 2009 00:04:00 -0700
How can it be a root class? Every ObjC object must be based on the
root class NSObject (ultimately). In Interface Builder, you add a new
subclass of NSObject by dragging the NSObject to the IB document
window, then you change the class Identity to your own name. That's
what the default AppDelegate class looks like. The documentation
states (as it should) that this "provides an instance of an NSObject
subclass that is not avaialable in IB, [which] you can use [to] create
instances of your own classes."
If I add an NSViewController to my document window and change it's
class identity to myViewController, then myViewController is a
subclass of NSViewController. Same thing for NSObject as described
above.
I can't understand why you would have to set the parent to NSObject.
That seems scary to me. And buggy.
Paul
On Sep 2, 2009, at 11:26 PM, Shane Stanley wrote:
Takaaki's change probably makes more sense, though. At the moment it
looks
like that file is another root class -- is that really a good idea?
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden