• 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
objc_msgSend_ptr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

objc_msgSend_ptr


  • Subject: objc_msgSend_ptr
  • From: Tilo Villwock <email@hidden>
  • Date: Thu, 25 Sep 2008 13:52:26 +0200

i have the following piece of code in my controller class:

- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn: (NSTableColumn *)aTableColumn row:(int)rowIndex{
id object = nil;
if([tableView columnWithIdentifier:[aTableColumn identifier]] == 1){
object = [[files objectAtIndex:rowIndex] name];
}
if([tableView columnWithIdentifier:[aTableColumn identifier]] == 2){
object = (id)[[files objectAtIndex:rowIndex] sizeOfFile];
}
return object;
}


it provides the NSTableView in my app with content. For some reason i cannot assign:

		object = (id)[[files objectAtIndex:rowIndex] sizeOfFile];

or at least an error occurs i cannot figure out. In the debugger the last item on top of the stack is something like "objc_msgSend_ptr". Now "files" here is an instance of NSMutableArray and the method "sizeOfFile" belongs to a custom class and returns the size properly.

I'm pretty new to Cocoa and Objective-C and being used to java, i'm not quite familiar with memory management (alloc/release/retain etc.). Maybe there is something i'm missing here. I'm running 10.4 Tiger.

Thanks in advance.

Tilo
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: objc_msgSend_ptr
      • From: chaitanya pandit <email@hidden>
  • Prev by Date: Re: lauchd and svnserve
  • Next by Date: [NSCFNumber intValue]: unrecognized selector
  • Previous by thread: Re: unrecognized selector sent to instance
  • Next by thread: Re: objc_msgSend_ptr
  • Index(es):
    • Date
    • Thread