Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
Hello all. Here is what I have: an NSArryaController for my Entity User. and an NSArrayController for my Entity Invoice. so this is what Im doing when saving an invoice for a selected user. -(void)saveInvoiceForSender:(id)sender withParent:(UserListViewController *)parent{ NSLog(@"Sav

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
MMM I think I may know whats wrong.. the managedObjectContext contains only the newly insterted invoice but nothing about the user which comes from the NSArrayController. So this makes me think that the ArrayController fetches the Entities but don't place them into the managedObjectContext?,...

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Laurent Demaret
Gustavo Pizano wrote: > .. > unrecognized selector sent to instance 0x100266580.. > any clue what Im doing wrong? You used a unrecognized selector for object 0x100266580 ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Quincey Morris
On Nov 24, 2009, at 11:42, Gustavo Pizano wrote: > Now the interesting part, 14, I did jsut a test to see what I could get, and > eventually the way it is, I get the value of @"ico", BUT, If I try to do the > follwoing: NSLog(@"%@",[(User *)[[parent _userListArrayController] selection] > ico])

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
Thats what its telling me the console... when logging... ... :( On Nov 24, 2009, at 8:57 PM, Laurent Demaret wrote: > > Gustavo Pizano wrote: >> .. >> unrecognized selector sent to instance 0x100266580.. >> any clue what Im doing wrong? > > > You used a unrecognized selector for object 0x1

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
A ... ok... Thanks for the help Quincey. G On Nov 24, 2009, at 8:58 PM, Quincey Morris wrote: > On Nov 24, 2009, at 11:42, Gustavo Pizano wrote: > >> Now the interesting part, 14, I did jsut a test to see what I could get, >> and eventually the way it is, I get the value of @"ico", BUT,

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Laurent Demaret
Gustavo Pizano wrote: > Thats what its telling me the console... when logging... It means that the object you sent the message could not handle it. Just put a breakpoint at your NSLog statement and type "po" followed by the id of the faulting object so you know who you are sending your action t

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-24 Thread Gustavo Pizano
Laurent hi. Yes I guess this goes into my experience book.. I needed to use not the proxy but the selected element. .. grrr.. I guess I got confuseed on how I was doing it with bindings in IB. Thanks for all guys! G. :D On Nov 24, 2009, at 9:46 PM, Laurent Demaret wrote: > Gustavo Pizano w

Re: Cant Access Properties of NSManagedObject from a NSArrayController...

2009-11-25 Thread Laurent Demaret
Hi Gustavo, Gustavo Pizano wrote: > I needed to use not the proxy but the selected element. .. grrr.. Then I may advise you to use the lastObject selector il you expect only one selectedObject. Using objectAtIndex:0 will give a BAD_EXEC (as long I recall) Error (anyway) each time you have an e