• 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: Why is my NSTableView empty?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is my NSTableView empty?


  • Subject: Re: Why is my NSTableView empty?
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 28 Apr 2008 20:32:00 +0200


On 28.4.2008, at 19:19, I. Savant wrote:

... sssssooooo .... is your category method -lastName being called?

I'm able to get the correct value from gdb but it looks like my method
isn't called or is wrong implemented...

If the method isn't called, that's the more important problem (since whether it's correctly implemented or not is irrelevant if it's not even given a chance to execute). So set a breakpoint on your method and use the debugger to see if it ever stops at that breakpoint. Or simply put an NSLog() statement in there before the return and say something like @"I made it! YAY! That'll show that stupid, stupid Idiot Savant!".

 If your method is being called, then the value you're retrieving
from the address book entry is wrong somehow. Also, if you're not
familiar with the debugger, read the documentation and post any
followup questions to the xcode-users list (as it isn't Cocoa
specific).

--
I.S.

Actually,
it's not getting called at all. Is it because my method is defined in category? As I wrote already, I'm able to call my methods from gdb so my category is up and running


NSLog(@"%@", [[[ppl arrangedObjects] objectAtIndex:0] lastName]);

as opposed to
Value (ABPeople.arrangedObjects.lastName)

Robert
_______________________________________________

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: Why is my NSTableView empty?
      • From: Quincey Morris <email@hidden>
    • Re: Why is my NSTableView empty?
      • From: "I. Savant" <email@hidden>
References: 
 >Why is my NSTableView empty? (From: Robert Cerny <email@hidden>)
 >Re: Why is my NSTableView empty? (From: "I. Savant" <email@hidden>)
 >Re: Why is my NSTableView empty? (From: Robert Cerny <email@hidden>)
 >Re: Why is my NSTableView empty? (From: "I. Savant" <email@hidden>)
 >Re: Why is my NSTableView empty? (From: Robert Cerny <email@hidden>)
 >Re: Why is my NSTableView empty? (From: "I. Savant" <email@hidden>)
 >Re: Why is my NSTableView empty? (From: Robert Cerny <email@hidden>)
 >Re: Why is my NSTableView empty? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: NSMenuItem and images
  • Next by Date: Re: Zip Files in Objective-C?
  • Previous by thread: Re: Why is my NSTableView empty?
  • Next by thread: Re: Why is my NSTableView empty?
  • Index(es):
    • Date
    • Thread