Re: Write Finder plugin

2012-07-26 Thread Rakesh Singhal
Hi Ronald, Thank you very much and now I am using PyObjC. But it doesn't add the items in Services if my app is installed in /Applications folder. If you have any idea then please let me know. Is it possible to enable these items only for particular folder in finder? Regards, Rakesh Singhal On M

Re: Write Finder plugin

2012-07-26 Thread Rakesh Singhal
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 path. Is there something, I am missing? Regards, Rakesh Singhal On Thu, Jul 26, 2012 at 2:36 PM, Rakesh Singhal w

Re: Write Finder plugin

2012-07-26 Thread Kyle Sluder
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 path. > Is there something, I am missing? That's a fi

Re: Using NSTerminateLater with a Status Item

2012-07-26 Thread Trygve Inda
> Hi Olivier. > > rdar://problem/6001460 > > See http://lapcatsoftware.com/rdar/6001460/index.html for an explanation. > > In short, you won't be able to do it with a LSUIElement app. > > -Jeff > Is there a work-around for this? I need to delay shutdown of a LSUIElement app during logout for

Re: Forcing Core Data to save attribute changed behind its back?

2012-07-26 Thread Sean McBride
On Tue, 24 Jul 2012 13:32:21 -0700, Sixten Otto said: >On Tue, Jul 24, 2012 at 11:27 AM, Sean McBride >wrote: >> Yes. My object is a subclass of NSObject and I don't override >isEqual:. As I test, I overrode it and always return NO. At first, I >thought this did the trick, since Core Data pass

iOS Rendering PDFs on a Background Thread

2012-07-26 Thread Dave
Hi All, I like to be able to fire off a Background thread that Renders PDF pages to UIImage's. I've got the code working on the Main Thread, but now the tricky bit because since I am using UIGraphicsBeginImageContextWithOptions and UIGraphicsEndImageContext in order to capture the Image,

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread David Duncan
On Jul 26, 2012, at 2:09 PM, Dave wrote: > I've got the code working on the Main Thread, but now the tricky bit because > since I am using UIGraphicsBeginImageContextWithOptions and > UIGraphicsEndImageContext in order to capture the Image, and, as far as I > know these methods can only be cal

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread Dave
On 26 Jul 2012, at 22:17, David Duncan wrote: On Jul 26, 2012, at 2:09 PM, Dave wrote: I've got the code working on the Main Thread, but now the tricky bit because since I am using UIGraphicsBeginImageContextWithOptions and UIGraphicsEndImageContext in order to capture the Image, and, a

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread David Duncan
On Jul 26, 2012, at 2:39 PM, Dave wrote: > Really? Just double checking you mean what you mean. My code basicall > > UIGraphicsBeginImageContextWithOptions > UIGraphicsGetCurrentContext > ---Reander PDF Page into the Context obtained above. > UIGraphicsGetImageFromCurrentImageContext > UIGraphic

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread Dave
Hi, Thanks for that! All the Best Dave On 26 Jul 2012, at 22:20, Evadne Wu wrote: Probably not: http://stackoverflow.com/questions/10931155/ uigraphicsbeginimagecontextwithoptions-and-multithreading Best, Eve On Jul 27, 2012, at 5:09 AM, Dave wrote: Hi All, I like to be able to fire o

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread Dave
On 26 Jul 2012, at 22:52, David Duncan wrote: On Jul 26, 2012, at 2:39 PM, Dave wrote: Really? Just double checking you mean what you mean. My code basicall UIGraphicsBeginImageContextWithOptions UIGraphicsGetCurrentContext ---Reander PDF Page into the Context obtained above. UIGraphicsGetI

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread Conrad Shultz
On Jul 26, 2012, at 2:09 PM, Dave wrote: > Hi All, > > I like to be able to fire off a Background thread that Renders PDF pages to > UIImage's. > > I've got the code working on the Main Thread, but now the tricky bit because > since I am using UIGraphicsBeginImageContextWithOptions and > UIG

NSPointerArray compact

2012-07-26 Thread James Maxwell
Hi All, I'm using NSPointerArrays to store references for a complex object graph. The nodes themselves are stored in an NSDictionary for archiving, and the pointer arrays are just used to record the interconnectivity of the nodes (it's loopy and complex, which has been causing problems with NSK

cocoa plugin in widget on 10.8 - is spctl a solution?

2012-07-26 Thread Chuck Soper
I have a cocoa plugin in a dashboard widget . This is also referred to as a widget plugin . I tested the widget (and plug-

Re: NSPointerArray compact

2012-07-26 Thread Graham Cox
On 27/07/2012, at 10:33 AM, James Maxwell wrote: > I'm using NSPointerArrays to store references for a complex object graph. The > nodes themselves are stored in an NSDictionary for archiving, and the pointer > arrays are just used to record the interconnectivity of the nodes (it's loopy > and

iOS4.3 simulator with Xcode 4.4

2012-07-26 Thread Nathan Day
Does anybody know how to get the iOS4.3 simulator to work with Xcode 4.4, we need to support iOS 4 up. I did a google search and found a way to do it with earlier Xcode 4's, but when I try it with Xcode 4.4 the simulator complains it can not find the SDK. Nathan Day

Debugging -setNeedsDisplayInRect:

2012-07-26 Thread Nick Zitzmann
I've got a view that, according to Quartz Debug, is invalidating a large and unnecessary portion of the view when certain user events happen. The problem is, I have no idea what is causing this to happen. What strategies are best for debugging the -setNeedsDisplayInRect: method to find out spec

Reading Very Large Files (300 Mb to 3 Gb)

2012-07-26 Thread Thomas Wetmore
I need to process very large files, and below is the program I use to do the work. I have run this program on data files from very small up to over 3 Gb in length. Much of my testing has been done with files in the 200 to 300 Mb size, and the program works fine at that size. However, when I mov

Re: Reading Very Large Files (300 Mb to 3 Gb)

2012-07-26 Thread Greg Parker
On Jul 26, 2012, at 8:20 PM, Thomas Wetmore wrote: > I need to process very large files, and below is the program I use to do the > work. I have run this program on data files from very small up to over 3 Gb > in length. Much of my testing has been done with files in the 200 to 300 Mb > size, a

Re: Reading Very Large Files (300 Mb to 3 Gb)

2012-07-26 Thread Thomas Wetmore
Greg, Thanks for the INSTANT answer! I added the auto-release pool inside the read loop and ran the program on the largest data file I have, 3.46 Gb. The program ran perfectly in just under nine minutes and never built up any virtual memory. In hindsight I am embarrassed I did not come to the a

Re: iOS4.3 simulator with Xcode 4.4

2012-07-26 Thread Nathan Day
Sorry this really belongs on the Xcode mailing list Nathan Day On 27/07/2012, at 11:53 AM, Nathan Day wrote: > Does anybody know how to get the iOS4.3 simulator to work with Xcode 4.4, we > need to support iOS 4 up. I did a google search and found a way to do it with > earlier Xcode 4's, but

FSEvents eventid (or perhaps event)'s life

2012-07-26 Thread Alfian Busyro
Hi, All. Just curious how long an event ID (or perhaps an event) will be exist on the system ? I'd like to store event ID on NSUserDefaults before application terminate itself, and call it back at the startup to be use in new event stream. Regards, Alfian.