Finder contextual menu plugin 10.6

2009-09-02 Thread Marco Cassinerio
Hi, so far i've build finder plugin using Carbon and SampleCMPlugin code example. Now, with 10.6, Carbon support has been dropped. So, how can i create a finder plugin that works only on 10.6? Thanks Marco ___ Cocoa-dev mailing list (Cocoa-dev@li

NSAppleScript error

2009-09-06 Thread Marco Cassinerio
I'm writing a System Service under 10.6 that launchs an apple script with NSAppleScript. When the apple script target app is not running, the script works, but when the app is already running, the executeAndReturnError: will return nil and an error in the dictionary. Launching the same apple

Re: NSAppleScript error

2009-09-06 Thread Marco Cassinerio
You need to share you applescript and this error with us. :) --Kyle Sluder I tried a lot of AS and the error is related to the AS request. For example, this to get the current playing track in iTunes: tell application "iTunes" set curr_path to get location of current track re

Re: NSAppleScript error

2009-09-06 Thread Marco Cassinerio
On Sep 6, 2009, at 22:25, has wrote: Marco Cassinerio wrote: I tried a lot of AS and the error is related to the AS request. For example, this to get the current playing track in iTunes: tell application "iTunes" set curr_path to get location of current track re

-[NSMoveHelper _doAnimation] hangs

2010-08-07 Thread Marco Cassinerio
Hi, i've fallen in a weird bug... In my app i display a sheet window and it hangs in random occasions, just after sending - beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: (it never returns from here). Here's the trace: #0 0x95af0266 in mach_msg_trap #1 0x95af

Custom NSMenu

2008-06-15 Thread Marco Cassinerio
I've to build e custom menu like this: | "menu item 1" | "menu item 2" | "menu item 3" | Every menu item is a NSPopUpMenu's subclass with a custom image displayed. When the user left-click on a menu item a PopUpMenu is displayed. What i would is let the user to left-click and move mouse over

base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
Hi, i'm trying to read the com.apple.recentitems.plist file and i found that "Alias" and "Icon" key are base64 NSData object. NSData and NSString don't provide methods to manage base64 data. I've searched with Google and i found some "pathces" for NSString and NSData but they don' t seem to

Re: base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
>They aren't "base64 NSData objects", they are NSData objects which >happen to be stored using base64. This is an implementation detail and >you shouldn't need to care about it. >The .plist extension implies that these are property lists. You can >read them with NSPropertyListSerialization. This

Re: base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
On Mar 22, 2008, at 8:46 PM, Jens Alfke wrote: On 22 Mar '08, at 12:40 PM, Marco Cassinerio wrote: Using NSPropertyListSerialization means that the .plist file is a binary representation and not an XML representation, is it true? No. You can choose either format when writing a plist

Re: base64 NSData to NSString

2008-03-22 Thread Marco Cassinerio
On Mar 22, 2008, at 9:24 PM, Jens Alfke wrote: On 22 Mar '08, at 1:19 PM, Marco Cassinerio wrote: I've done what you said, but nothing changed. I get the same data content, like this: ImgR\362FBIL\346\326\303\331\376\247H+\222!\222C\303\351-+ \377\376\377\377\377\377\222!\2

NSDistributedNotification names

2008-03-23 Thread Marco Cassinerio
Hi, where can I get the list of distributed notification's names? I'm looking for notifications referring to events like: application launch, active window/document changed. Thanks. Marco. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: NSDistributedNotification names

2008-03-23 Thread Marco Cassinerio
On Mar 23, 2008, at 10:17 PM, Sherm Pendley wrote: On Sun, Mar 23, 2008 at 5:07 PM, Marco Cassinerio <[EMAIL PROTECTED] > wrote: where can I get the list of distributed notification's names? I'm looking for notifications referring to events like: application launch, active

Re: NSDistributedNotification names

2008-03-24 Thread Marco Cassinerio
If done through NSDistributedNotificationCenter or NSWorkspace's special notification center, then yes. Otherwise, no. What exactly are you trying to accomplish? Nick Zitzmann I would my application be notified when: - another application has been launched

-stringByEvaluatingJavaScriptFromString: return value iphone

2009-01-31 Thread Marco Cassinerio
Hi, i'm trying to execute a javascript function on the iPhone and get the return value. The function is simple: return "hello"; I'm using a UIWebView and the -stringByEvaluatingJavaScriptFromString: method but, while it works on os x, it doesn't on the iPhone. How can i solve? Thanks Ma