That¹s also a problem with re-declared methods not labeled as IBAction, such
as a few contained in NSTextView. (e.g., superscript, subscript.)

Another point with firstObject.  I assumed this was the same as array[0] or
objectAtIndex:0, but apparently not so.  If I remember correctly, these
result in a range exception if the array is empty.  FirstObject is a better
choice and avoids having to pre-check for count != 0.


On 12/22/13 3:00 PM, "cocoa-dev-requ...@lists.apple.com"
<cocoa-dev-requ...@lists.apple.com> wrote:

> So just declare it in a category and leave it out of the implementation? That
> of course gives me a warning that my implementation is incomplete.
> -(id)firstObject;


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to