Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unresponsive mouseMoved method




Am 31.03.2007 um 02:11 Uhr schrieb Bob Smith:

In any case, when I see a class described as "abstract" I take that to mean I should not instantiate the class directly, and I assume the initializers may return instances of a subclass rather than the class itself. Is that not correct?

I'm not sure why you would assume such.

There currently is no formalism to create 'real' abstract classes in Objective-C. So calling a class 'abstract' is just a way of saying it's *usually* subclassed. Unless the documentation says otherwise, this does not mean you can't use that class as is.

Similarly class clusters are also not a language feature but just a Cocoa convention. While class clusters may indeed return different objects on init, that does not mean that other classes can not do the same thing. Either way it has to be clearly documented.

NSView is not a class cluster. And instances of NSView are quite useful on their own (mostly as containers for other views). Whatever Apple may change in the future, they need to make sure to not hamper the ability to instantiate NSView or countless applications would break.


Andreas _______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Unresponsive mouseMoved method (From: "Steve Bryan" <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: Bob Smith <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: "Shawn Erickson" <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: Bob Smith <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: "Steve Bryan" <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: Bob Smith <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: Uli Kusterer <email@hidden>)
 >Re: Unresponsive mouseMoved method (From: Bob Smith <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.