Re: NSArrayController KVO question...

2012-11-22 Thread jonat...@mugginsoft.com
On 21 Nov 2012, at 22:19, Randy Widell bornagainsl...@gmail.com wrote: Hmm. Well, I am updating the model (and the database that backs it). I just need the UI to reflect it. Hmm, that sounds wonky. The whole point of binding is that you can update your model and have your UI reflect the

Re: NSTableView animation parameters

2012-11-22 Thread Graham Cox
OK, well I accidentally solved this part satisfactorily. In my -animationForKey: method, I set the animationDuration to several seconds to check it was really having an effect, and to my surprise I found that this also affected the animation in the table view. I think this happens because the

Re: filterPredicate not effecting NSArrayController

2012-11-22 Thread jonat...@mugginsoft.com
On 22 Nov 2012, at 00:27, Erik Stainsby erik.stain...@roaringsky.ca wrote: The tableView is bound to an arrayController object in XIB, which is in turn a ref to this (weak) peopleArrayController in the windowController. The predicates (whichever is triggered) print to log just as

Tooltip with Custom bg color/image and text color

2012-11-22 Thread Appa Rao Mulpuri
Hi, In Cocoa, do we have provision to change the Tooltip text color and bg color. In some cases, I may need to display an email in the tooltip. http://stackoverflow.com/questions/2861783/how-do-i-set-the-text-color-of-a-cocoa-tooltip is mentioned override the drawWithExpansionFrame, but failed

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

2012-11-22 Thread Appa Rao Mulpuri
In some cases, I may need to display an Image (not email, sorry for the typo) in the tooltip. On 22/11/12 3:37 PM, Appa Rao Mulpuri appar...@ivycomptech.commailto:appar...@ivycomptech.com wrote: Hi, In Cocoa, do we have provision to change the Tooltip text color and bg color. In some

Re: NSFileManager - Incompatible persistent store

2012-11-22 Thread Sean McBride
On Wed, 21 Nov 2012 18:17:26 -0500, Tom Miller said: Sorry my bad! The warning states 'createDirectoryAtPath:attributes:' is depreciated. I was able to get rid of that window warning once the app launched, miss spelled something in my code. Though I'm still unable to save the imputed text to the

Re: NSRulerMarker question

2012-11-22 Thread Ross Carter
On Nov 21, 2012, at 8:22 PM, Graham Cox graham@bigpond.com wrote: The standard NSRulerMarker draws a black line in the client view as it is dragged. This comes 'for free' but I wonder how on earth it works. There is also no way to customise it that I can see. I'm wondering if this

Re: NSArrayController KVO question...

2012-11-22 Thread Randy Widell
Right, and in other places it works for me. For instance, I have a window with text fields bound to a model object through an object controller. Updating properties of the model updates the text fields. Reading your test below, one thing I was forgetting is that I am not binding a column in

Re: NSArrayController KVO question...

2012-11-22 Thread jonat...@mugginsoft.com
On 22 Nov 2012, at 18:57, Randy Widell bornagainsl...@gmail.com wrote: Right, and in other places it works for me. For instance, I have a window with text fields bound to a model object through an object controller. Updating properties of the model updates the text fields. Reading your

Re: NSArrayController KVO question...

2012-11-22 Thread Randy Widell
You presume correctly. Your suggestion makes perfect sense. I was just reading about key dependencies yesterday, but didn't put 2 and 2 together because I wasn't think about the way the table view was setup. Thanks for the help! On Nov 22, 2012, at 12:16 PM, jonat...@mugginsoft.com wrote:

Re: NSFileManager - Incompatible persistent store

2012-11-22 Thread Shane Stanley
On 23/11/2012, at 2:58 AM, Sean McBride s...@rogue-research.com wrote: Most path-based and non-NSError-returning file APIs are deprecated Is that documented anywhere? All I can see is this in the NSFileManager reference: The NSFileManager class supports both the NSURL and NSString classes as

Re: NSFileManager - Incompatible persistent store

2012-11-22 Thread Sean McBride
On Fri, 23 Nov 2012 09:14:51 +1100, Shane Stanley said: Most path-based and non-NSError-returning file APIs are deprecated Is that documented anywhere? Not sure if it's called out in black and white, but you just have to browse the headers to see that all the newer file-related APIs use NSURL

Re: NSRulerMarker question

2012-11-22 Thread Graham Cox
On 23/11/2012, at 2:58 AM, Ross Carter rosscarter...@me.com wrote: On Nov 21, 2012, at 8:22 PM, Graham Cox graham@bigpond.com wrote: The standard NSRulerMarker draws a black line in the client view as it is dragged. This comes 'for free' but I wonder how on earth it works. There is

Re: NSRulerMarker question

2012-11-22 Thread Kyle Sluder
On Thu, Nov 22, 2012, at 02:56 PM, Graham Cox wrote: Yes, that's right. The design of the NSRulerViewDelegate protocol suggests that doing this is possible. In fact, the documentation explicitly states that the delegate method can be used for this purpose. However, it does not work, and the

Re: NSRulerMarker question

2012-11-22 Thread Kyle Sluder
On Thu, Nov 22, 2012, at 03:22 PM, Kyle Sluder wrote: If you think about it, it makes sense that NSTextView cannot be responsible for the black line, because NSTextView (in its default configuration) sizes itself vertically to fit the used rect of its text container, yet the line draws in the

Re: filterPredicate not effecting NSArrayController

2012-11-22 Thread Erik Stainsby
Thanks for leading this horse to water, Ken. I removed the arrayController from the NIB and set the tableView's Content to File's Owner peopleArrayController.arrangedObjects and VOILA. *sigh* I seem to consistently try to put too much into the (nib/code) and get in the way of the services

Re: nssound question

2012-11-22 Thread Rick C.
Thank you all for the replies I will continue looking into this... On Nov 22, 2012, at 10:26 AM, Dave Fernandes dave.fernan...@utoronto.ca wrote: In System Preferences Sound, there is a setting to Play sound effects through… I believe this changes where alert sounds are played. I expect