Question about IB, filterPredicate, and bindings

2009-11-15 Thread Daniel Wambold
Hello, list. I am a hack programmer, so forgive what is probably an obvious question. I'm working on a core data document based app that uses bindings I've created in IB to control a master / detail interface. Briefly, in XCode's xcdatamodel, there is a Person entity with a name (String) an

How do I bind ManagedObject's relationships to a view?

2009-12-01 Thread Daniel Wambold
Hello, List. I am a novice with CoreData and bindings and I've stumped myself with this problem. I have created an xcdatamodel that contains 3 objects: an Account object with a relationship property authorizedUsers, which is a to-many relationship with a Person object. The Person object has

Answered: How do I bind ManagedObject's relationships to a view?

2009-12-03 Thread Daniel Wambold
I'm posting this simply because I *thought* I had looked through all of Apple's "bindings for beginners"-style documentation, but hadn't seen this sort of dependent controller setup described. Sorry if it's obvious or redundant In the spirit of (finally) answering my own question (and i

Cocoa bindings and Core Data

2009-12-23 Thread Daniel Wambold
Dear List, I am still learning bindings and CoreData, but I have recently completed another relatively basic program using both these technologies. I learn best by seeing other people's code, so in that vein, I'm posting my source (iCredit is the newer program, but Billing Project also uses thes

How can I make an NSTableView update its display on command?

2009-12-26 Thread Daniel Wambold
Hello List, I am writing a CoreData app with an entity controller bound to an NSTableView, with the bindings created programmatically. Periodically, the program creates a new NSManagedObject, sets default values, and adds it to the MOC. This works fine. However, the NSTableView does not update i

RE: How can I make an NSTableView update its display on command?

2009-12-26 Thread Daniel Wambold
Sorry. It was NOT the NSTableView's problem. I neglected to add: [[self managedObjectContext] processPendingChanges]; after the NSManagedObject was created. Please disregard the previous post. Best Regards, Dan ___ Cocoa-dev mailing list (Cocoa-dev@li

NSDatePicker 24 hour clock

2010-01-08 Thread Daniel Wambold
Hello. I have an NSDatePicker (NSTextFieldAndStepperDatePickerStyle) and I need it to display time in a 24-hour time mode. After reading Apple's docs and searching the Web, I can't seem to find a way to make this happen. I have attached an NSDateFormatter in IB and specified 24-hour time (HH:MM)

Re: NSDatePicker 24 hour clock

2010-01-09 Thread Daniel Wambold
> > On Jan 8, 2010, at 3:12 PM, Daniel Wambold wrote: > >> Hello. I have an NSDatePicker (NSTextFieldAndStepperDatePickerStyle) and I >> need it to display time in a 24-hour time mode. After reading Apple's docs >> and searching the Web, I can't seem

Re: NSDatePicker 24 hour clock

2010-01-09 Thread Daniel Wambold
> Daniel Wambold (wambo...@gmail.com) on 2010-01-08 6:12 PM said: > >> Hello. I have an NSDatePicker (NSTextFieldAndStepperDatePickerStyle) and >> I need it to display time in a 24-hour time mode. After reading Apple's >> docs and searching the Web, I can'

Re: NSDatePicker 24 hour clock

2010-01-09 Thread Daniel Wambold
Sean- I changed the Apple Menu > System Preferences > Date & Time > Use a 24-hour clock setting. However, as I mentioned, I'd really prefer not to make this a system-wide change. I just find it odd that there would be no programmatic way to change the NSDatePicker to a 24-hour clock. If there is

NSArrayControllers not repopulating after NSPersistentDocument load

2010-01-13 Thread Daniel Wambold
Dear List, I have an NSPersistentDocument app using CoreData for storage. I have three NSArrayControllers to mediate between the three Entities in my Model and three NSTableViews. Everything works fine until I load a previously saved file. At that point, the controllers seem to have no content

Re: NSArrayControllers not repopulating after NSPersistentDocument load

2010-01-13 Thread Daniel Wambold
Quincey- I have not created a controller in code, to my knowledge, so I don't know how I'd have two. (I had, previously, made this error by creating an instantiation of NSDocument in IB, but I realized the error in my ways and cleared that up, I believe, by resetting the File's Owner to the MyD

NSTableView Column Header Restrictions?

2010-01-19 Thread Daniel Wambold
I have an NSTableView that I populate with columns programmatically. I use the following to establish the header titles: NSTableHeaderCell *myGenericHeaderCell = [[[NSTableHeaderCell alloc] initTextCell:myTableColumnTitle] autorelease]; [myGenericHeaderCell setAlignment:NSCenterTextAlignment]; [

Re: NSTableView Column Header Restrictions?

2010-01-19 Thread Daniel Wambold
> On Jan 19, 2010, at 3:30 PM, Daniel Wambold wrote: > >> I have an NSTableView that I populate with columns programmatically. I use >> the following to establish the header titles: >> >> NSTableHeaderCell *myGenericHeaderCell = [[[NSTableHeaderCell alloc] >

Apparent NSTableView Bug

2010-01-28 Thread Daniel Wambold
I have run up against an apparent 10.6.2 bug in the NSTableView object. Specifically, if NSTableViewSelectionHighlightStyleNone is set, the tableView causes Assertion failures and other problems. Below is some code demonstrating the problem. In any event, I need to emulate the None style for hig

Re: Apparent NSTableView Bug

2010-01-28 Thread Daniel Wambold
Corbin- Looks like [myTableView setAllowsColumnSelection:NO]; stopped the crashing for now (I'm sure I've made plenty of other mistakes that are lurking in the dark) Thanks for the tip! -dan___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: NSTableView Column Header Restrictions?

2010-01-31 Thread Daniel Wambold
Previous problem solved: A few weeks ago, I posted a question pertaining to trouble I was having when tableView column header cell titles contained period (.) characters. After working around it, I recently discovered the source of my problem and I figured I'd post just in case anyone else stumb

Re: NSTableView Column Header Restrictions?

2010-02-01 Thread Daniel Wambold
OK, first, thanks to Quincey for pointing out the document on KVO/KVB key requirements. Since I've made several mistakes along the way, I figured I'd ask if this seems adequate to ensure conversion of arbitrary strings (keyboard entered) into compliant keys. The code subsequently checks to ensur