• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Method not seeing array as array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Method not seeing array as array


  • Subject: Re: Method not seeing array as array
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 2 Feb 2005 13:44:12 -0800


On Feb 2, 2005, at 12:21 PM, Andrew Farmer wrote:
- (id)init
{
self = [super init]; // <-- note that we're initializing `self' here!
if(!self) return nil;
// initialize variables, etc
return self;
}

I don't know what exactly happens if you don't initialize `self', but your problems are probably stemming from this issue.

Given that AppController is a direct subclass of NSObject, I doubt this is the case here. More likely at least one issue relates to:


        NSLog(@"channel %@ added",[channelArray count]);
should be:
        NSLog(@"channel %d added",[channelArray count]);

mmalc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Method not seeing array as array (From: Michael Swan <email@hidden>)
 >Re: Method not seeing array as array (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: NSDocument setFileName - File Must Exist?
  • Next by Date: Re: Patching, upgrading in the future...
  • Previous by thread: Re: Method not seeing array as array
  • Next by thread: Re: Method not seeing array as array
  • Index(es):
    • Date
    • Thread