on Mac OS X, NSArrayController is a bindings compatible class that manages a collection of objects
0
votes
0answers
25 views
I have an NSmutable array which is bound to arraycontroller and a table view . The array contents are strings and I m able to display them in
I have an NSMutableArray and a table view which displays the data in NSMutable array. The array contents are string and its being displayed properly .
I have used binding to display the data using ...
0
votes
1answer
14 views
Change an entity attribute displayed in a table through an Array Controller
I have a set of attributes that are displayed in Tableview through an Array controller (all bindings), I have written some code to change one of the attributes based on the content of others. I wrote ...
0
votes
0answers
17 views
nsarraycontroller - nstableview add: method not working
I have an NSMutableArray populated with instances of a "student" class I wrote that is bound to an NSArrayController, which in turn is bound to an NSTableView.
The data in the tableview is displayed ...
0
votes
0answers
16 views
Create group rows in NSTableView using CoreData backed NSArrayController
Say I have a bunch of Article objects stored within the core data model. Each article maintains, a reading progress attribute which denotes how much of the article has been read by the user. Once the ...
1
vote
1answer
34 views
cocoa NSArrayController show custom wizard on add action
I have the NSArrayController and NSTableView, also linked "add" button with add method of NSArrayController. When I clicked the add button - it just create new row at NSTableView.
I wish to show my ...
0
votes
0answers
24 views
How to setup Core Data with binding to a single entity instance
I have a nstextview that I load in a text string to from a txt file. I want to persist this string along with a float of how much the text was scrolled down. I have made a text entity and the ...
0
votes
1answer
24 views
Modifications on objects in NSUserDefaults-bound NSArrayController not saving
In my project, I have an NSArrayController bound to save to a the application's standard defaults (NSUserDefaults). This in itself works perfectly - objects added are saved and restored as expected.
...
0
votes
0answers
36 views
Lazy Fetching & Maintaining a sorted NSArrayController
I've got a sample project at
https://github.com/ericgorr/LazyFetching
The setup is pretty straightforward. In my CoreData model, I have two entities:
Shelf which has a name property and a to-many ...
0
votes
0answers
18 views
Trouble setting up arrayController with NSTableView and Core Data
I am trying to set up multiple tables in a single window along with a core data model with related entities. Some of which have dictionaries and arrays as attributes. I have turned to manually ...
0
votes
1answer
43 views
Binding Cocoa NSComboBox value to object
Assuming I have an NSObject subclass representing a country, e.g.
@interface CountryInfo : NSObject
@property (nonatomic, retain) NSString *countryName;
My model contains an NSMutableArray of ...
0
votes
1answer
64 views
Core Data: How to update an NSArrayController immediately after adding an NSManagedObject?
I am adding an instance in core data. The entity is represented by an NSArrayController. I would like to access the newly added instance through the controller.
A "Skill" instance is added and then I ...
2
votes
0answers
64 views
Editable table view bound to NSArrayController bound to NSUserDefaultsController
I have a simple model Foo that represents a user preference and encapsulates an NSString and an NSNumber. I want to store an array of Foo’s in user defaults so that they persist between launches of ...
0
votes
0answers
38 views
An NSArrayController changes its selection : what is the best way to catch this event?
One can put an observer on the selectedIndex method of NSArrayController. This method has some drawbacks I think :
what will happen when the arrangedObjects is rearranged ? I admit this is not a ...
0
votes
1answer
68 views
Controlling iOS UITableView
I've some experiences with creating an OS X app handling multiple user input with an array controller. The NSArrayController takes care of showing and updating an NSTableViews content. Adding, ...
0
votes
0answers
24 views
NSTableView NSArrayController NSButton key-equivalent FirstResponder coordination
I have an NSWindow with numerous NSTableViews that are bound to their own NSArrayControllers. Each of these has a set of add and remove buttons to deal with providing new data. I also set up identical ...
0
votes
1answer
27 views
Cocoa Bindings error
Trying to wrap my head around cocoa bindings can't determine the reason for this error
I Have a simple app, in which, the app delegate passes the Managedobjectcontext to Window Controller, which ...
0
votes
1answer
92 views
Array Controller not updating Table View until “Add” button is pressed
I'm new to Cocoa and Objective-C, so I'm following the Lynda courses and learning a lot. Thing is, I've encountered a problem that I cannot figure out, even though I seem to be doing it exactly the ...
2
votes
1answer
392 views
KVO: +keyPathsForValuesAffecting<Key> doesn't work with (subclass of) NSObjectController
I have a KVO-able class (call it Observee), which affectedValue dynamic property is affected by affectingValue property. The dependency between the properties is defined by implementing ...
-3
votes
3answers
82 views
Using Core Data in code - Objective-C/Cocoa
I have Core Data entity named Event in my xcdatamodeld with 2 attributes : title and date. I have also an arrayController set to Entity mode with the Event entity (done with interface builder). I want ...
0
votes
1answer
29 views
is concurrently enumerating managed object in core data thread-safe
I need to update a value for each arranged object in Core Data, and I am currently using a loop. But I want to know if the following code is thread-safe or not, and why.
ManagedObjectContext is not ...
0
votes
1answer
42 views
Using Core Data with a non-document based app - Cocoa
I have worked with Core Data using document based apps. But know, I'm trying to build an app similar the Notes app on the Mac OS X. So I've created a non-document based app with a Data Model. I binded ...
0
votes
3answers
166 views
Add an object to an NSArrayController and have it save into the Entity
I have an NSArrayController that is connected to my Entity in Core Data. I have an IBOutlet attached to the NSArrayController so that I can add objects from my Delegate.
I am trying to add an Object ...
0
votes
1answer
119 views
NSArrayController+cocoa binding + core data: get the selected row at application Launching
I'm using cocoa-binding, NSArrayController and core data.
Just after Launching, the application have to get the first item, i try this in applicationDidFinishLaunching:
1. Entity *ent = ...
0
votes
1answer
63 views
Scroll NSTableView to selection
OK, this is my situation :
I have an NSMutableArray bound to an NSTableView, via an NSArrayController.
I'm manipulating the table view's selection (trigger by keyboard), using NSArrayController's ...
0
votes
0answers
52 views
restrict editable content in NSTableView-cell
I managed to create a NSPopUpButton where the user can choose a value from a defined (and restricted) selection.
this input is send to an NSTableView-cell (row) via NSArrayController and KVC ...
0
votes
1answer
59 views
how to sort a view-based tableview
I can't manage to sort a view-based tableview. I use an arrayController that control an entity of core data.
I tried to select a column and in the attribute inspector I used as a sort key the ...
0
votes
0answers
106 views
Create and XML File in Xcode cocoa Application?
I grab a XML file from server and Parse it with the NSXMLParser and display it in a NSTableView. From there, i can add a row to the tableview. I am guessing the added information is added to the ...
0
votes
1answer
67 views
Persist the content and order of an array controller in cocoa
I have a Mac OS application that uses core data to persist its objects to disk, backed by sqlite.
I have a tableView where all the NSManagedObject subclasses can be inspected. This is bound to an ...
3
votes
1answer
138 views
Binding an Ordered Relationship with an NSArrayController
How does one bind an NSArrayController's content to the entities in an ordered to-many relationship?
I have an unordered to-many relationship in my Core Data model, and an NSArrayController whose ...
1
vote
2answers
139 views
Binding BOOL value to NSArrayController
I have a tableview bound with array controller.There are two columns in table view,one is string and another one is BOOL.I am getting string values in tableview.For displaying BOOL values in ...