• 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: Having problem with fetch request in NSDocument based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having problem with fetch request in NSDocument based application


  • Subject: Re: Having problem with fetch request in NSDocument based application
  • From: Clayton Leitch <email@hidden>
  • Date: Fri, 04 Sep 2009 10:38:50 -0400

The debugger shows 0 objects in the array. Interestingly, this same code works perfectly in a non-NSDocument version of this application.
On Sep 4, 2009, at 10:29 AM, I. Savant wrote:


On Sep 4, 2009, at 10:24 AM, Clayton Leitch wrote:

Yes, I saved it as XML and opened the file. Below is what I found:

Okay, so since there're definitely some instances in the store, and nothing is nil in the debugger, the only thing remaining is your message delivery.


... have you specifically verified in the debugger that the array in fact has a count of zero?

If you find that it does not, I suspect your "errorMessage" field's outlet isn't connected and its default string is set to "0". That way, no matter what the count is, the field is never updated from "0".

That's really the only thing I can see. I've gone over your code several times and can't find anything wrong with it. So, if someone points out something obvious, you're not the only one who will be embarrassed. :-)

--
I.S.





_______________________________________________

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: Having problem with fetch request in NSDocument based application
      • From: "I. Savant" <email@hidden>
References: 
 >Having problem with fetch request in NSDocument based application (From: Clayton Leitch <email@hidden>)
 >Re: Having problem with fetch request in NSDocument based application (From: "I. Savant" <email@hidden>)
 >Re: Having problem with fetch request in NSDocument based application (From: "I. Savant" <email@hidden>)
 >Re: Having problem with fetch request in NSDocument based application (From: Clayton Leitch <email@hidden>)
 >Re: Having problem with fetch request in NSDocument based application (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Binding table columns that change at runtime
  • Next by Date: Re: Having problem with fetch request in NSDocument based application
  • Previous by thread: Re: Having problem with fetch request in NSDocument based application
  • Next by thread: Re: Having problem with fetch request in NSDocument based application
  • Index(es):
    • Date
    • Thread