Re: NSWorkspace -launchApplication fails to launch, but no error

2009-03-21 Thread Luca C.
ke a look here < http://developer.apple.com/DOCUMENTATION/Carbon/Reference/LaunchServicesReference/Reference/reference.html#//apple_ref/c/func/LSOpenApplication > The Process Manager's LaunchApplication works well, too. < http://developer.apple.com/DOCUMENTATION/Carbon/Reference/P

Re: Is it a "Value" or an "Object" ?

2009-03-21 Thread Luca C.
Essentially they are the same, but the word "value" fits nicely with KVC. --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-

Re: Noob question: Weirdness getting the bounds of an NSView...

2009-03-24 Thread Luca C.
whenever and wherever you want. Caching its value is quite useless and needs more code, as you should update it every time your view will be resized. -- --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: Control over position of tooltip for a NSView

2009-03-24 Thread Luca C.
hat would be to implement your own tooltips. You may be interested in -mouseEntered:, -mouseExited: and -mouseDragged: methods of NSView (inherited from NSResponder). -- --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: How to extract the basic info from an audio file?

2009-03-25 Thread Luca C.
oa_-_ID3Tag_framework.html> --Luca C. 2009/3/25 Andrew Farmer > On 24 Mar 09, at 23:58, ldl0313036 wrote: > >> I want to extract an audio file's basic information in my application. >> Like the iTunes ,when importing a song, >> the song's information (for exa

Re: Best Strategy to Control iTunes

2009-03-30 Thread Luca C.
ator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/cocoa-dev/luca.pazzerello%40gmail.com > > This email sent to luca.pazzere...@gmail.com > --

Re: Best Strategy to Control iTunes

2009-03-31 Thread Luca C.
your tracks will be added after the user closes the dialog window. Run the script in a separate thread so it won't block your application's interface in any case. This could happen in some situations. You may want to take a look to the NSThread class, in particular the detachN

Re: Best Strategy to Control iTunes

2009-04-01 Thread Luca C.
either applescript or SB will cause a block of the app if iTunes has dialog windows opened. The solution could be writing a command line application, wich does all the work you need, either using AS or SB. --Luca C. ___ Cocoa-dev mailing list (Cocoa-de

Re: Best Strategy to Control iTunes

2009-04-01 Thread Luca C.
2009/4/1 Ammar Ibrahim > On Wed, Apr 1, 2009 at 10:21 PM, Luca C. wrote >> >> >> I didn't realize the unsafety of NSAppleScript - so I have been quite >> lucky, because my usage of applescript in non-main threads haven't caused >> me >> any

NSTableView - Ctrl-click editing?

2009-04-07 Thread Luca C.
Hi there, is there a clean way to let the user edit a cell of a table view using a ctrl click event? Do i have to subclass my table view or there is another trick to do this? Thanks, --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Send click to window

2009-04-09 Thread Luca C.
tm/NSApplication/sendEvent :> --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/U

Re: stopping an application

2009-04-13 Thread Luca C.
ven't tested with Leopard yet, but I'm sure it works there. HTH --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(

Re: Exit an Application

2009-04-13 Thread Luca C.
uot; and I've connected it with > the method: > > - (IBAction)exitApp:(id)sender > { >// TODO > } > > Now my question is: "Which call I have to do to quit my application instead > of // TODO?" > Is there a NSsomething to call? -- --Luca C.

Re: Best way to get a non-repeating random number?

2009-04-13 Thread Luca C.
le while loop check against the > previous value. So while it wasn't equal to the last it would be used. So > this isn't using an Array by any means for anything. > What's the best way to do this in Obj-C? The same way in AS3? I just w

Re: Best way to get a non-repeating random number?

2009-04-14 Thread Luca C.
2009/4/14 Uli Kusterer > On 14.04.2009, at 01:44, Luca C. wrote: > >> You can put every (unsigned) value you want in there, though in >> general it's used passing (unsigned)time(NULL) as parameter. This way >> you'll always get a different int. >> >