Missing something about initialization

2009-06-12 Thread Alfonso Ortega
I'm trying to parse a bit of html and use it to initialize an object. I have very little background in objective-c, everything parses correctly, I just can't seem to get the object initialized. What am I doing wrong? -(id)initWithNavcenRow:(NSString *)row { NSScanner *rowScanner =

Re: Missing something about initialization

2009-06-12 Thread Dave DeLong
You need the [super init] stuff in there. Dave On Jun 12, 2009, at 2:54 AM, Alfonso Ortega wrote: I'm trying to parse a bit of html and use it to initialize an object. I have very little background in objective-c, everything parses correctly, I just can't seem to get the object

Re: Missing something about initialization

2009-06-12 Thread Ken Thomases
On Jun 12, 2009, at 4:54 AM, Alfonso Ortega wrote: I'm trying to parse a bit of html and use it to initialize an object. I have very little background in objective-c, everything parses correctly, I just can't seem to get the object initialized. What am I doing wrong? You're not invoking

Re: Missing something about initialization

2009-06-12 Thread Scott Andrew
A couple of things: You are not retaining your values after retrieved (slot, svn, prn, clock, block). These are auto released and will be released the the next time the pool is cleaned up. (assuming you are not using garbage collection). Not sure what your class is subclassed from, but if

Re: Missing something about initialization

2009-06-12 Thread Ken Thomases
On Jun 12, 2009, at 1:27 PM, Scott Andrew wrote: You are not retaining your values after retrieved (slot, svn, prn, clock, block). These are auto released and will be released the the next time the pool is cleaned up. slot, svn, and prn are apparently integers. They are scalar values,

Re: Missing something about initialization

2009-06-12 Thread Scott Andrew
Duh.. Should read the code that says intValue mind went to assignment and didnt finish reading the lines. Scott On Jun 12, 2009, at 11:21 AM, Ken Thomases wrote: On Jun 12, 2009, at 4:54 AM, Alfonso Ortega wrote: I'm trying to parse a bit of html and use it to initialize an object. I