accessing notification center programatically

2013-03-20 Thread Rick C.
Hi, Does anyone know if there's a way to access all current notifications in notification center (from all apps) programmatically? Not sure if Apple would allow this but thought I'd ask. Any ideas about this would be great thanks! rc ___ Cocoa-dev

How to: NSPopover Refuse First Responder?

2013-03-20 Thread Brad Stone
I'm trying to replicate the NSPopover functionality that the new iTunes has and I'm 99% there. The las problem I'm facing is when the NSPopover appears it steals the firstResponder status from the NSSearchField so the user's typing gets interrupted when the popover appears. I tried giving the

Watching a file for changes.

2013-03-20 Thread Mr. Gecko
How can I watch for file changes? E.G. I open a file in Text Edit, I change the file by adding a few words, I save the file. After the file is saved, I'll like to know it was saved. I need to know how to do this both in 10.8 and 10.4. E.G. For directories in 10.8, I use FSEventStreamCreate.

Re: Watching a file for changes.

2013-03-20 Thread Mr. Gecko
Thanks, I'll read though how that works and see if I can implement it in my software. On Mar 20, 2013, at 11:26 AM, Scott Ribe scott_r...@elevated-dev.com wrote: On Mar 20, 2013, at 9:34 AM, Felix Franz wrote: You can use kqueue or some wrapper like UKKQueue

Re: Watching a file for changes.

2013-03-20 Thread Jay Freeman
At a lower level, there is always the C library function, stat. Do man stat for details. -- Jay Reynolds Freeman - jay_reynolds_free...@mac.com http://JayReynoldsFreeman.com (personal web site) ___ Cocoa-dev mailing list

Re: accessing notification center programatically

2013-03-20 Thread David Duncan
You cannot access these items no. On Mar 20, 2013, at 1:21 AM, Rick C. rickcort...@gmail.com wrote: Hi, Does anyone know if there's a way to access all current notifications in notification center (from all apps) programmatically? Not sure if Apple would allow this but thought I'd ask.

Re: How to get all the path of an application present on the disk

2013-03-20 Thread Matt Neuburg
But only if Spotlight is turned on for this disk. I mention this because I recently broke my own app under these exact circumstances, by turning off Spotlight! I had to turn it off because it was misbehaving - and I'm sure I'm not the only one. m. On Wed, 20 Mar 2013 13:39:32 +0100, Tim

Re: Triggering an NSTextStorage Bug

2013-03-20 Thread Seth Willits
Long story short, it seems this may be caused by the retainCount value on the paragraph style object wrapping around because there are so many references to it. According to the header, it only allows for 2^19 retains (524,288), which you can see in NSParagraphStyle.h (unsigned int

Re: Triggering an NSTextStorage Bug

2013-03-20 Thread Kyle Sluder
On Wed, Mar 20, 2013, at 11:48 AM, Seth Willits wrote: Either way though, it seems in a huge document with a zillion little ranges it could easily and legitimately hit this retainCount limit. Seems kinda odd that it's limited to 19 bits. Ha! The reason it's limited to 19 bits is because for

Re: KeyboardType for an iOS searchBar.

2013-03-20 Thread Alex Zavatone
On Mar 20, 2013, at 1:27 PM, Matt Neuburg wrote: On Wed, 13 Mar 2013 17:54:40 -0400, Alex Zavatone z...@mac.com said: Yeah, that's the point. I know you can set it a la the storyboard, but once it is set (once it's on the scene, the default is what is set) it's really hard to change. I

Re: ARC Release too soon

2013-03-20 Thread Dave
On 16 Mar 2013, at 21:52, Kevin Muldoon wrote: I'd think adding the WindowController to a @property (strong, nonatomic) NSArray *array; would keep those objects alive. Most often, I would simply add each WindowController (or in my case, ViewController) one-at-a-time in the .h. I simply

Re: NSScanner question

2013-03-20 Thread Graham Cox
On 21/03/2013, at 12:53 AM, Gerd Knops gerti-cocoa...@bitart.com wrote: Can't agree here, I have used NSScanner to parse quite a few even complex file formats, and NSScanner was a pretty convenient (and fast!) solution for these cases. It's useful, but not as useful as it could be. It

Re: How to: NSPopover Refuse First Responder?

2013-03-20 Thread Andy Lee
On Mar 20, 2013, at 11:44 PM, Graham Cox graham@bigpond.com wrote: On 21/03/2013, at 12:53 AM, Brad Stone cocoa-...@softraph.com wrote: How can I have a popover appear but have the NSSearchField never relinquish it's firstResponder status or have the NSPopover refuse firstResponder?