• 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: subclass weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subclass weirdness


  • Subject: Re: subclass weirdness
  • From: Koen van der Drift <email@hidden>
  • Date: Mon, 30 Jun 2003 20:16:03 -0400

On Sunday, June 29, 2003, at 10:51 PM, Andy Lee wrote:

When staring fails, it's time to resort to brute-force debugging. Put in NSLog() statements. Make sure the "mySub" in your "[mySub foo:aString]" statement is in fact an instance of MySub and not MyBase. It's simple to do:

NSLog(@"mySub is an instance of %@", [mySub className]);



Thanks, I didn't know of the className method. This helped me find the problem very quickly - indeed a typemismatch. I was inserting an array of mySub objects into another array, but actually I was inserting the array as one object, instead of separate mySub objects.

- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: subclass weirdness (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Getting the "real" file size
  • Next by Date: Saving preferences tutorial
  • Previous by thread: Re: subclass weirdness
  • Next by thread: Re: subclass weirdness
  • Index(es):
    • Date
    • Thread