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

Problems with KVC


  • Subject: Problems with KVC
  • From: "C.W. Betts" <email@hidden>
  • Date: Fri, 23 Nov 2012 21:18:39 -0700

I'm trying to get my program PlayerPRO Cocoa to display the contents of the music list. I was able to put things into the list, but they do not show up in the table view.
(Full code is available at sourceforge.net/projects/playerpro, on the PlayerPRO6 branch)

I have it set up so that the App Delegate has a reference to the PPMusicList class defined as musicList. PPMusicList has a mutable array with contents of PPMusicListObject; the PPMusicListObject has two values: an NSURL that has the full path of a file (musicUrl), and the file's name (fileName). the PPMusicList class that has the following defines:

- (NSUInteger)countOfMusicList;
- (id)objectInMusicListAtIndex:(NSUInteger)idx;
- (void)insertObject:(id)anObj inMusicListAtIndex:(NSUInteger)idx;
- (void)removeObjectInMusicListAtIndex:(NSUInteger)object;
- (void)replaceObjectInMusicListAtIndex:(NSUInteger)index withObject:(id)anObject;

There is an Array controller bound to the app delegate with the model key path set to musicList and the table is bound to the array controller with the model key path set to fileName.

What am I doing wrong?
_______________________________________________

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: Problems with KVC
      • From: Quincey Morris <email@hidden>
  • Prev by Date: "Virtual" deletion and NSFetchedResultsController
  • Next by Date: Re: CF replacement to FSFindFolder?
  • Previous by thread: "Virtual" deletion and NSFetchedResultsController
  • Next by thread: Re: Problems with KVC
  • Index(es):
    • Date
    • Thread