Re: Write Finder plugin

2012-07-30 Thread Rakesh Singhal
Hi Kyle, Thank you very much. It worked. Regards, Rakesh Singhal On Thu, Jul 26, 2012 at 7:47 PM, Kyle Sluder wrote: > On Jul 26, 2012, at 3:56 AM, Rakesh Singhal > wrote: > > > It worked. Pbs was indexing the old build. > > > > On 10.7, I am not getting the file path instead of that I get so

Re: NSTextView scrolling

2012-07-30 Thread Richard Somers
On Jul 30, 2012, at 12:19 PM, ecir hana wrote: > when jumping from line to line in a textview with "up" and "down" keys, it > exhibits this scrolling behavior - when the cursor is at the very top and I > hit "up" (and vice versa), it scrolls the document half page up, that is, > the current line i

Re: FSEvents eventid (or perhaps event)'s life

2012-07-30 Thread Ron Hunsinger
On Jul 30, 2012, at 4:47 AM, Robert Martin wrote: > Just keep track of the device UUID for each path and last event ID that > you're tracking. EventID's are tied to each device, so you have to know that > the device has not changed behind your back. For example, this can happen if > the user

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Markus Spoettl
On 7/30/12 10:46 PM, Keary Suska wrote: No, the controller does have a valid selection and other fields bound to other keypaths of the same controller/selection (in other words same object, because it's a single-object selection) do show values. Maybe I didn't understand what you are saying. A

Re: Drag-and-drop crashes

2012-07-30 Thread Stephane Sudre
On Mon, Jul 30, 2012 at 10:31 PM, McLaughlin, Michael P. wrote: > I have a Mac OS app that worked fine in Snow Leopard. In moving up recently > to Lion, I also moved up to Xcode 4.4 and recompiled the app, targeting 10.6 > but without otherwise changing the source code. I got two problems whe

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Keary Suska
On Jul 30, 2012, at 10:32 AM, Markus Spoettl wrote: > On 7/30/12 4:54 PM, Keary Suska wrote: >>> I have an NSTextField bound to some NSString property via the selection >>> proxy of an array controller. When the property value is nil, the field >>> displays the selection placeholder, not the null

Drag-and-drop crashes

2012-07-30 Thread McLaughlin, Michael P.
I have a Mac OS app that worked fine in Snow Leopard. In moving up recently to Lion, I also moved up to Xcode 4.4 and recompiled the app, targeting 10.6 but without otherwise changing the source code. I got two problems when running the resulting app under Lion. I fixed the first problem by

Re: Problem enumerating a directory

2012-07-30 Thread Jens Alfke
On Jul 30, 2012, at 2:48 AM, Mark Allan wrote: > Thanks very much for the suggestion. I've just given that a try, but it > doesn't make any difference. The enumeration still stops early, but the > error handler block doesn't get called This sort of situation always makes me suspect an excep

awakeFromSnapshotEvents: flags == 128?

2012-07-30 Thread patrick machielse
I'm overriding this method in my iOS 5 application: - (void)awakeFromSnapshotEvents:(NSSnapshotEventType)flags According to the documentation, 'flags' is a bitmask of NSSnapshotEventType constants. However, it seems that the 'flags' value is always 128 when this method is called by CoreData.

Re: UIScrollView insertSubview:atIndex: problem

2012-07-30 Thread David Duncan
On Jul 30, 2012, at 11:20 AM, Dave wrote: > I'm trying to add an a View at the start of a Scroll View but it always seem > to add to the end, not the start. The code I have is: > > [theScroll insertSubview:myImageView atIndex:0]; > > In order to have the image added at the start of the Scroll

UIScrollView insertSubview:atIndex: problem

2012-07-30 Thread Dave
Hi All, I'm trying to add an a View at the start of a Scroll View but it always seem to add to the end, not the start. The code I have is: [theScroll insertSubview:myImageView atIndex:0]; In order to have the image added at the start of the Scroll View, but it acts exactly the same as if I

NSTextView scrolling

2012-07-30 Thread ecir hana
Hello, when jumping from line to line in a textview with "up" and "down" keys, it exhibits this scrolling behavior - when the cursor is at the very top and I hit "up" (and vice versa), it scrolls the document half page up, that is, the current line is now in the middle of the textview. Is it poss

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Markus Spoettl
On 7/30/12 4:54 PM, Keary Suska wrote: I have an NSTextField bound to some NSString property via the selection proxy of an array controller. When the property value is nil, the field displays the selection placeholder, not the null placeholder. Why? When I bind the field to the object directly (

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Keary Suska
On Jul 30, 2012, at 1:36 AM, Markus Spoettl wrote: > Hello, > > this is must be embarrassingly simple, still I can't figure out what I'm > doing wrong this time. > > I have an NSTextField bound to some NSString property via the selection proxy > of an array controller. When the property value

Re: Problem enumerating a directory

2012-07-30 Thread Andy Lee
On Jul 30, 2012, at 8:28 AM, Andy Lee wrote: > Another thought: try running with NSZombie turned on. This could lead to painful swapping though if you're testing over zillions of files and never dealloc'ing. Maybe save as a last resort, or let it run for just a limited time in the hopes you'll

Re: Problem enumerating a directory

2012-07-30 Thread Andy Lee
On Jul 27, 2012, at 12:44 PM, Mark Allan wrote: > I'm trying to list a directory recursively to build up a snapshot of the > contents and store them in a core data DB, but keep running into issues with > the directory list. The core data part is working fine as far as I can tell! Just for grin

Re: FSEvents eventid (or perhaps event)'s life

2012-07-30 Thread Robert Martin
Just keep track of the device UUID for each path and last event ID that you're tracking. EventID's are tied to each device, so you have to know that the device has not changed behind your back. For example, this can happen if the user has switched to a cloned backup drive containing the folders

Re: Problem enumerating a directory

2012-07-30 Thread Mark Allan
On 30 Jul 2012, at 11:37, Mike Abdullah wrote: > On 30 Jul 2012, at 10:48, Mark Allan wrote: >> Thanks very much for the suggestion. I've just given that a try, but it >> doesn't make any difference. The enumeration still stops early, but the >> error handler block doesn't get called, making m

Re: Write Finder plugin

2012-07-30 Thread Mike Abdullah
On 26 Jul 2012, at 15:17, Kyle Sluder wrote: > On Jul 26, 2012, at 3:56 AM, Rakesh Singhal wrote: > >> It worked. Pbs was indexing the old build. >> >> On 10.7, I am not getting the file path instead of that I get something >> like "file:///.file/id=6571367.3388989". In 10.6, I am getting full

Re: Problem enumerating a directory

2012-07-30 Thread Mike Abdullah
On 30 Jul 2012, at 10:48, Mark Allan wrote: > Thanks very much for the suggestion. I've just given that a try, but it > doesn't make any difference. The enumeration still stops early, but the > error handler block doesn't get called, making me think there's no error; the > enumeration simply

Re: Problem enumerating a directory

2012-07-30 Thread Mark Allan
Thanks very much for the suggestion. I've just given that a try, but it doesn't make any difference. The enumeration still stops early, but the error handler block doesn't get called, making me think there's no error; the enumeration simply thinks it's finished. Anything else I could try. FW

Re: NSDocument window opens - even if the document didn't read properly.

2012-07-30 Thread Mike Abdullah
On 29 Jul 2012, at 19:47, Pascal Harris wrote: > Mike, > > Thanks for taking time on a Sunday to reply promptly. I'm very grateful. > Taking each point > > On 29 Jul 2012, at 19:10, Mike Abdullah wrote: > >> Hello, there are many things wrong with your code. I’m noting them below. >> >>

Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Markus Spoettl
Hello, this is must be embarrassingly simple, still I can't figure out what I'm doing wrong this time. I have an NSTextField bound to some NSString property via the selection proxy of an array controller. When the property value is nil, the field displays the selection placeholder, not the