![]() |
|
[C] [Objective-C] initWithModel method - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] [Objective-C] initWithModel method (/showthread.php?tid=5159797) |
[Objective-C] initWithModel method - Ruby On Rails - Feb 5, 2016 I'm trying to create an initWithModel method that uses a NSString *model as an input. I can't seem to figure out how to create an initWithModel method, any ideas? * - Annabelle Lee - Feb 5, 2016 So if I understood this right, like this? Code - (id)initWithModel:(NSString *)oneModel; //constructorOr did you mean actual function itself? * - Ruby On Rails - Feb 5, 2016 (Feb 5, 2016 12:31 PM)AnnabelleLee Wrote: So if I understood this right, like this? initWithModel isn't recognizing as anything, it's thinking I'm naming the method initWithModel. * - Annabelle Lee - Feb 5, 2016 (Feb 5, 2016 12:50 PM)Aged™ Wrote: initWithModel isn't recognizing as anything, it's thinking I'm naming the method initWithModel. Do you think you could post a piece of code that reproduces the behavior? * - Ruby On Rails - Feb 5, 2016 (Feb 5, 2016 01:01 PM)AnnabelleLee Wrote: Do you think you could post a piece of code that reproduces the behavior? PMing you now |