Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Cocoa... custom class executes own method....? Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Meds" data-source="post: 788073" data-attributes="member: 67584"><p>How do I get the instance of my custom class to execute it's own method?</p><p></p><p>i.e. I have my controller class called Checker and one instance of it. My question is, if I define a method for it in Checker.h, in Checker.m how can I make it execute that method?</p><p></p><p>Basically I want the app to start this method itself, instead of pressing a button or otherwise sending an action to start that method. I've tried [self method] but it always tells me unrecognized selector sent to instance, even though I declared the method in the header...</p><p></p><p>Does this make any sense? I hope so...</p></blockquote><p></p>
[QUOTE="Meds, post: 788073, member: 67584"] How do I get the instance of my custom class to execute it's own method? i.e. I have my controller class called Checker and one instance of it. My question is, if I define a method for it in Checker.h, in Checker.m how can I make it execute that method? Basically I want the app to start this method itself, instead of pressing a button or otherwise sending an action to start that method. I've tried [self method] but it always tells me unrecognized selector sent to instance, even though I declared the method in the header... Does this make any sense? I hope so... [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Cocoa... custom class executes own method....? Help
Top