NSComparisonPredicate vs. predicateWithFormat

2012-11-23 Thread Rick Mann
I'm trying to set up an "IN" predicate like this: NSArray* deletedAlertIDs = @[ @198, @197 ]; NSPredicate* pred = [NSComparisonPredicate predicateWithLeftExpression: [NSExpression expressionForKeyPath: @"keyShadow"] rightExpression: [NSExpression expressionForAggregate

Re: Problems with KVC

2012-11-23 Thread C.W. Betts
On Nov 23, 2012, at 9:57 PM, Quincey Morris wrote: > On Nov 23, 2012, at 20:18 , "C.W. Betts" wrote: > >> I'm trying to get my program PlayerPRO Cocoa to display the contents of the >> music list. I was able to put things into the list, but they do not show up >> in the table view. >> (Full

Re: Problems with KVC

2012-11-23 Thread Quincey Morris
On Nov 23, 2012, at 20:18 , "C.W. Betts" wrote: > I'm trying to get my program PlayerPRO Cocoa to display the contents of the > music list. I was able to put things into the list, but they do not show up > in the table view. > (Full code is available at sourceforge.net/projects/playerpro, on th

Re: CF replacement to FSFindFolder?

2012-11-23 Thread C.W. Betts
I bit the bullet and my Plug-in handling code now has some Cocoa in it. On Nov 2, 2012, at 6:59 PM, Sean McBride wrote: > On Fri, 2 Nov 2012 18:50:27 -0600, C.W. Betts said: > >> Is there a Core Foundation replacement for FSFindFolder? > > I don't think so. Today's recommendation is NSFileMana

Problems with KVC

2012-11-23 Thread C.W. Betts
I'm trying to get my program PlayerPRO Cocoa to display the contents of the music list. I was able to put things into the list, but they do not show up in the table view. (Full code is available at sourceforge.net/projects/playerpro, on the PlayerPRO6 branch) I have it set up so that the App De

"Virtual" deletion and NSFetchedResultsController

2012-11-23 Thread Rick Mann
One of the features in my app is a set of alerts that come in as messages. They're displayed with a typical message UI, like in the Mail app. There's a table listing the subject and body prefix for each alert in a cell. I use an NSFetchedResultsController to coordinate with the model. The proble

Re: Getting mouse events in view placed in NSTableRowView

2012-11-23 Thread Kyle Sluder
On Nov 23, 2012, at 4:26 PM, thatsanicehatyouh...@me.com wrote: > > I tried hit test in a point that should be in my custom view, and it returned > the NSTableView. I don't understand why the event seems to pass through my > custom view and the NSTableRowView. NSTableView overrides -hitTest: t

Re: NSArrayController KVO question...

2012-11-23 Thread Randy Widell
Well, I implemented your method and still had issues. Turns out the value binding for the drop-down menu was a secondary issue. After implementing your method, I could verify that changing the property did, in fact, trigger an update in the table. However, the values never changed in UI. The

Re: Getting mouse events in view placed in NSTableRowView

2012-11-23 Thread thatsanicehatyouhave
Hi Kyle, Thanks for the comments. On Nov 23, 2012, at 3:32 PM, Kyle Sluder wrote: > Are you sure you don't want to make it a subview of the cell view instead? Sorry, I should have mentioned; I want the cell view that I click to remain where it is, and the custom detail view will be rather lar

Re: Getting mouse events in view placed in NSTableRowView

2012-11-23 Thread Kyle Sluder
On Nov 23, 2012, at 2:08 PM, thatsanicehatyouh...@me.com wrote: > Hi, > > I'm having a problem with a subclass of NSTableRowView I'm trying to > implement. I have custom NSTableCellView that contains a button. When I press > the button, I want that row to expand in height. I would like to then

Re: Tooltip with Custom bg color/image and text color

2012-11-23 Thread Jerry Krinock
On 2012 Nov 22, at 02:12, Appa Rao Mulpuri wrote: > I may need to display an email in the tooltip. Don't use a bicycle if you need a truck. In this case, make your own custom "attached" window. It's not difficult. Read this… http://mattgemmell.com/2007/10/03/maattachedwindow-nswindow-subcl

Getting mouse events in view placed in NSTableRowView

2012-11-23 Thread thatsanicehatyouhave
Hi, I'm having a problem with a subclass of NSTableRowView I'm trying to implement. I have custom NSTableCellView that contains a button. When I press the button, I want that row to expand in height. I would like to then place a custom NSView into that new space (think of it as a detail view of

How to properly clear subordinate arrayControllers in master-detail hierarchy?

2012-11-23 Thread Erik Stainsby
I have a windowController which swaps two views, a list versus a single record's detail view. The detail view contains a hierarchy of arrayControllers which each support table views. At the top level of the detail view is an arrayController which contains the current selection from the list vi

Re: removeObserver with keyPath nil

2012-11-23 Thread Mike Abdullah
On 20 Nov 2012, at 19:50, Fritz Anderson wrote: > On 20 Nov 2012, at 11:16 AM, Gordon Apple wrote: > >> What¹s the story on removeObserver:self forKeyPath:nil, called in dealloc? >> Supposedly, this works. The docs don¹t say you can¹t use nil. However, I >> have run into at least one place w