• 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
Accessing method from another class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing method from another class


  • Subject: Accessing method from another class
  • From: PCWiz <email@hidden>
  • Date: Thu, 20 Aug 2009 13:18:21 -0600

This is going to seem like a complete newbie question, but I can't get this to work. I have a class with a method called "resetTextAndBar:" which just basically resets some text and a progress bar to match up with new data inserted into the table view:

- (void)resetTextAndBar:(id)sender {
	[self updateText];
	[bar setNeedsDisplay:YES];
}

 I need to call this method from a separate class.

I've tried using #import and forward class (@class), and using NSLog I determined that the method IS being called, but the 2 methods (updateText: and setNeedsDisplay:) arent being called

Thanks
_______________________________________________

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: Accessing method from another class
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Re: NSSortDescriptor in core-data document app
  • Next by Date: Re: devil of a time with an NSImageView
  • Previous by thread: Re: How to disable the table view when search bar is active
  • Next by thread: Re: Accessing method from another class
  • Index(es):
    • Date
    • Thread