• 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
method caller mixup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

method caller mixup


  • Subject: method caller mixup
  • From: James Maxwell <email@hidden>
  • Date: Sat, 17 Apr 2010 11:02:58 -0700

I have a couple of node-based classes, one to build a Lempel-Ziv tree (Incremental Parsing) and one to build a Trie. Both of these classes have an -initWithParent: method. Should be fine, I would think, but I'm getting a compiler error that a Trie node's initWithParent is expecting the Lempel-Ziv node as input. I can't see any reason why this would happen. Is there any tricky cause for a matching method name, in a totally different class, to get called? I tried cleaning the project, to no avail.
It would be too complicated to post the code, but the context of the error is something like this:

HSMM_TrieNode* newNode = [[HSMM_TrieNode alloc] initWithParent:aNode];

And yes, "aNode" is very definitely an HSMM_TrieNode, not a Lempel-Ziv node. The HSMM_TrieNode class has no idea that the Lempel-Ziv node class even exists...

Has anyone seen this kind of mixup?


thanks,

J.



James B Maxwell
Composer/Doctoral Student
School for the Contemporary Arts (SCA)
School for Interactive Arts + Technology (SIAT)
Simon Fraser University
email@hidden
email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: method caller mixup
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Launch app with params as front process and wait?
  • Next by Date: Re: Looking for examples of UIScrollView using Core Data
  • Previous by thread: Re: Looking for examples of UIScrollView using Core Data
  • Next by thread: Re: method caller mixup
  • Index(es):
    • Date
    • Thread