From: Jon B. <jo...@gm...> - 2007-06-26 12:57:40
|
From my understanding (ala bindings), you would make the @server object a kvc_accessor and access it via a key path. server.serverAddress Of course Im just guessing but Ive recently had to do a multi-level situation where I needed access in .nib for something else and went through a few more binding tutorials to understand what was happening. Im @ the point where Id like to dynamically setup all bindings @ runtime. - Jon On Jun 26, 2007, at 4:37 AM, Tim Perrett wrote: > Hey all > > I have managed to fix my core data problems which i previously posted > about (yay) but I am now working with my entitys and due to some lack > in my understanding struggling to actually access the data > programatically. > > I can access table attributes in MyDocument.rb with something like > this: > > @server.valueForKey('serverAddress') > > But what I want to do is access those values from another class, how > would I do this? I have read about KVC accessors and things but are > they even what I need? I would like this second class to handle all > the task processing and the ib_outlets and so on. This would mean > instantiating it in the nib in order to link the outlets, which > brings me back round to how can I then access items on my other > object? > > Thanks > > Tim > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |