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 =
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
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
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
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,
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