• 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: Abstract base classes in Objective C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Abstract base classes in Objective C


  • Subject: Re: Abstract base classes in Objective C
  • From: Timothy Knox <email@hidden>
  • Date: Thu, 14 Apr 2005 00:47:53 -0700
  • Mail-followup-to: Cocoa Users <email@hidden>

Somewhere on Shadow Earth, at Thu, Apr 14, 2005 at 05:24:39PM +1000, Andrew White wrote:
>
> Kevin Ballard wrote:
>
> >>Any suggestions?  Are protocols what I'm looking for?

Well, I am NOT an Objective-C/Cocoa expert by ANY stretch (still
learning Cocoa myself). However, I know that in Smalltalk, which
HEAVILY influenced Obj-C, there was a "doesNotUnderstand" method
that could be used to indicate that a particular method wasn't
implemented. So assuming Obj-C/Cocoa has the same thing, you could
have your method implementations call doesNotUnderstand.  Far from
an ideal solution, but it lets you use a class rather than a
protocol.

And of course, I may be so completely wrong as to be ridiculous,
in which case, kindly ignore everything I just said. As I said, I
am NOT a Cocoa expert, but do have a smattering of Smalltalk
knowledge.

--
Timothy Knox <mailto:email@hidden>
The one thing I've learned about freedom of expression is that you really
ought to keep that sort of thing to yourself.
    -- Scott Adams, _I'm Not Anti-Business, I'm Anti-Idiot_
 _______________________________________________
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

References: 
 >Abstract base classes in Objective C (From: Andrew White <email@hidden>)
 >Re: Abstract base classes in Objective C (From: Kevin Ballard <email@hidden>)
 >Re: Abstract base classes in Objective C (From: Andrew White <email@hidden>)

  • Prev by Date: Re: Cocoa from C++ (dont want to mix it)
  • Next by Date: Re: Drag and drop in NSOutlineView
  • Previous by thread: Re: Abstract base classes in Objective C
  • Next by thread: Re: Abstract base classes in Objective C
  • Index(es):
    • Date
    • Thread