Quote:
|
Is it "required" to put the toilet seat down? No. Will your wife chew on you if you fail to do so? Yes. Will life be easier for you if you just put it down? Yes.
|
LOL Ah a smile on my face at the end of the week - thats rare!!
I would like to interject a little question here if i may? I have this method set up (works no issues just a mem management question):
Code:
- (void) ipCuIdCount {
int n;
int ipCuIdInt = 0;
for (n = 0; n <= count; n = n + 1) {
ipCuIdInt = n;
//NSLog(@"the int: %i", ipCuIdInt);
ipCuIdString = (NSString*)ipCuIdInt;
//NSLog(@"HERE: %@", ipCuIdString);
}
}
And in that method this is set up as a property like so:
Code:
@property (nonatomic, retain) NSString *ipCuIdString;
I release this in dealloc as i believe i should. the question comes with the use of "self" Brian has hinted to me in the past that if i do not "self." or [self var] then i will not be using the property correctly. So when i was messing with my code this morning i added self so the method looked like this:
Code:
- (void) ipCuIdCount {
int n;
int ipCuIdInt = 0;
for (n = 0; n <= count; n = n + 1) {
ipCuIdInt = n;
//NSLog(@"the int: %i", ipCuIdInt);
self.ipCuIdString = (NSString*)ipCuIdInt;
//NSLog(@"HERE: %@", ipCuIdString);
}
}
And this resulted in a crash every time i ran the code without fail (EXC_BAD_ACCESS) and Zombies wouldnt tell me what from. Would anyone be able to explain that to me as i dont really understand what was going on there.
thanks Joe