Re: [CAcnTItem indexPath]: selector not recognized [self = 0x15d26c90]]
Re: [CAcnTItem indexPath]: selector not recognized [self = 0x15d26c90]]
- Subject: Re: [CAcnTItem indexPath]: selector not recognized [self = 0x15d26c90]]
- From: email@hidden
- Date: Fri, 1 Jul 2005 08:59:20 +0200
Hi Bert,
You are trying to call a method that doesn't exists and hence you get
the error in your log as "selector not recognized". And when you created
a method of the type you are calling in [CAcnTItem indexPath], the error
is no more displayed. Well if you don't do anything in indexPath method,
you can skip calling the method altogether.
Cocoa/Objective-C is more dependent on run-time and thats why when you
compile your code, you won't get any error message even though you are
trying to call a non-existent method. Cocoa/Objective-C finds such
errors during run-time rather than during compile time. This feature of
Cocoa/Objective-C is a boon if you use it properly, otherwise its curse :-).
Well most of the begineers in Cocoa/Objective-C do this mistake.
/ regards,
-Anish Kumar VK
Software Engineer, MAC OS X,
http://www.qubyx.com/
email@hidden/
>
>
>
>
> ------------------------------------------------------------------------
>
> Subject:
> -[CAcnTItem indexPath]: selector not recognized [self = 0x15d26c90]
> From:
> Bert Torfs
> Date:
> Thu, 30 Jun 2005 22:05:49 +0200
> To:
> email@hidden
>
> To:
> email@hidden
>
> Content-Transfer-Encoding:
> 7bit
> Precedence:
> list
> MIME-Version:
> 1.0 (Apple Message framework v730)
> Message-ID:
>
> Content-Type:
> text/plain; charset=US-ASCII; delsp=yes; format=flowed
> Message:
> 5
>
>
> This morning, I noticed that some parts of an application I am
> writing stopped working : whenever I select a tabpage having a tree-
> view (using a delegate and a datasource, not an
> NSTreeviewController), the application freezes.
> In the run log, the following message is shown :
>
> -[CAcnTItem indexPath]: selector not recognized [self = 0x15d26c90]
>
> So I just added and empty (sort of) method
>
> -(void)indexPath
> {
> NSLog(@"indexpath");
> }
>
> to the CAcnTItem class and bingo, everything seems to work again.
> Anyone knowing what is going on? (I search through the documentation
> did not return a method named 'indexPath'.
>
> Thanks,
>
> Bert
> ------------------------------------------------------------------------
/ t /
--
Wishing you a Good Day ... !!
/ thanks and regards,
-Anish Kumar VK
Software Engineer, MAC OS X,
Qubyx Software Technologies. Pvt. Ltd.
India Research and Development Center,
Bangalore, India.
http://www.qubyx.com/
email@hidden
/
_______________________________________________
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