• 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: Seemingly bizzare calling of method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seemingly bizzare calling of method


  • Subject: Re: Seemingly bizzare calling of method
  • From: Mike Abdullah <email@hidden>
  • Date: Mon, 16 Jan 2006 00:10:42 +0000

Hmm, so it appears you are right.

My method is actually called "setEventTitle:" and I have an IBOutlet in the same class called "eventTitle." If I rename the method to something slightly different then this doesn't happen.

So, what can I do to stop this? I'm fairly new to Cocoa, so I'm not really sure here! I mean, yes I could easily just choose an alternative name, but the method and the outlet are supposed to be fairly closely tied together. Anyone?

Mike.

On 15 Jan 2006, at 00:48, j o a r wrote:


On 15 jan 2006, at 01.25, Mike Abdullah wrote:

But this is what I don't understand - I haven't written any code that actually calls this method yet! So why on Earth is it being called? What have I done wrong?!?

Set a breakpoint in the method, and the debugger will tell you why it's called!


But a guess: Could it be that you have a nib outlet with the same name as this method? If so, check the IB FAQ (in the Help menu) for more details on that behaviour.

j o a r



_______________________________________________ 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
  • Follow-Ups:
    • Re: Seemingly bizzare calling of method
      • From: Cameron Hayne <email@hidden>
References: 
 >Seemingly bizzare calling of method (From: Mike Abdullah <email@hidden>)
 >Re: Seemingly bizzare calling of method (From: j o a r <email@hidden>)

  • Prev by Date: Re: Calculating volume free space
  • Next by Date: The Location of the document <name> cannot be determined.
  • Previous by thread: Re: Seemingly bizzare calling of method
  • Next by thread: Re: Seemingly bizzare calling of method
  • Index(es):
    • Date
    • Thread