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

Seemingly bizzare calling of method


  • Subject: Seemingly bizzare calling of method
  • From: Mike Abdullah <email@hidden>
  • Date: Sun, 15 Jan 2006 00:25:18 +0000

OK, so I have a fairly bog standard doc-based Cocoa app. I've subclassed NSWindowController so that its the "owner" of the document windows.

I'm trying to write a method in my window controller that my NSDocument can call in order to alter the interface. However, things are happening that I can't figure out!

In the MyWindowController.h I've added:

- (void)myMethod:(NSString *)aString;

And so then in MyWindowController.m there's:

- (void) myMethod:(NSString *)aString
{
	NSLog(@"myMethod has been called");
}

So I fire the app up.  And in the log I see "myMethod has been called"

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?!?

Please help!
Mike A.
_______________________________________________
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: j o a r <email@hidden>
  • Prev by Date: Re: [newbie] Window state saving
  • Next by Date: Re: [newbie] Window state saving
  • Previous by thread: Re: [newbie] Window state saving
  • Next by thread: Re: Seemingly bizzare calling of method
  • Index(es):
    • Date
    • Thread