Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Ninerose

macrumors newbie
Original poster
Jan 14, 2011
1
0
Awww.. this makes me annoying.
I'm trying to find out the solution but it's hopeless.

I have an entity that contains string value "name"
entity name is just "entity"

and I bound with NSArrayController (with prepare contents checked in IB)
And I put some value with add method in NSArrayController.

Controller also bound with NSTableView so, it's displayed whenever the
array fills with object.

attachment.php


and NSSearchField is also bound with NSArrayController, but this time binding
option is Predicate.( apparently I'm going to show object what i want via SearchField )

And kazaam!

attachment.php


It works like a charm.
I have been thinking that binding is such an technique i've ever used.
But after I try to re search the object with NSSearchField..
Nothing is viewed.
I tried to view the first contents with empty SearchField. But the original Objects were not coming back.

So I read some documents in Predicate and I relized that, the lost arraydata could not be restored.

It means I need to refil the current NSArrayController with entity objects.
But how?
Is there some way to retrieve my old entity data? or I just need to do manually?

I'm working with this about 2 days and I cant find any solution.
 

Attachments

  • Screen shot 2011-01-14 at 6.04.59 PM.png
    Screen shot 2011-01-14 at 6.04.59 PM.png
    15.5 KB · Views: 216
  • Screen shot 2011-01-14 at 6.05.10 PM.png
    Screen shot 2011-01-14 at 6.05.10 PM.png
    11.5 KB · Views: 208
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.