Re: notification when app is moved

2008-07-18 Thread Uli Kusterer
On 18.07.2008, at 04:31, Mitchell Livingston wrote: In some small tests I have seen that other apps break when moved while opened (testing with TextEdit), so perhaps I should just assume it won't move. I guess this is a moot issue then. File a bug with Apple. I think it should be possible

Re: notification when app is moved

2008-07-17 Thread Mitchell Livingston
I'm actually using UKKQueue in the project (it's a great utility - thanks a lot!). In some small tests I have seen that other apps break when moved while opened (testing with TextEdit), so perhaps I should just assume it won't move. I guess this is a moot issue then. On Thursday, July 17, 200

Re: notification when app is moved

2008-07-17 Thread Charles Srstka
On Jul 17, 2008, at 1:26 PM, Omar Qazi wrote: Sure. Then just update it every time the Application starts. Or do something like // I need to access that one file if (![[NSFileManager defaultFileManager]fileExistsAtPath:savedPath]) { newPath = [[NSBundle mainBundle]pathForResource:@"Whatever"

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
On 17.07.2008, at 23:13, Jean-Daniel Dupas wrote: Correct me if I'm wrong, but kqueue will not work if you move a folder that contains the applications (and not the app directly). You're right, completely forgot about that. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere.

Re: notification when app is moved

2008-07-17 Thread Jean-Daniel Dupas
Le 17 juil. 08 à 23:13, Jean-Daniel Dupas a écrit : Le 17 juil. 08 à 23:03, Uli Kusterer a écrit : On 17.07.2008, at 12:50, Mitchell Livingston wrote: I need to pass the location to a c library and reset the location in this library when the application is moved, so I need a way to know

Re: notification when app is moved

2008-07-17 Thread Jean-Daniel Dupas
Le 17 juil. 08 à 23:03, Uli Kusterer a écrit : On 17.07.2008, at 12:50, Mitchell Livingston wrote: I need to pass the location to a c library and reset the location in this library when the application is moved, so I need a way to know when the app is moved. How can I call it again if I d

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
On 17.07.2008, at 12:50, Mitchell Livingston wrote: I need to pass the location to a c library and reset the location in this library when the application is moved, so I need a way to know when the app is moved. How can I call it again if I don't know it moved? Waiting until it fails is a

Re: notification when app is moved

2008-07-17 Thread Omar Qazi
On Jul 17, 2008, at 3:50 AM, Mitchell Livingston wrote: How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why should it ever fail? Storing it in the library folder is

Re: notification when app is moved

2008-07-17 Thread Charles Srstka
On Jul 17, 2008, at 5:50 AM, Mitchell Livingston wrote: How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why should it ever fail? Storing it in the library folder is not a real good option.

Re: notification when app is moved

2008-07-17 Thread Devon Ferns
Why not just call it every time it starts up? I can't imagine the overhead of the API call is very high. Devon. Mitchell Livingston wrote: How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why

Re: notification when app is moved

2008-07-17 Thread Mitchell Livingston
How can I call it again if I don't know it moved? Waiting until it fails is a bit too late in the process. Sure, chances are the app won't move, but why should it ever fail? Storing it in the library folder is not a real good option. On Thursday, July 17, 2008, at 12:09AM, "Omar Qazi" <[EMAIL P

Re: notification when app is moved

2008-07-16 Thread Michael Ash
On Wed, Jul 16, 2008 at 9:08 PM, Mitchell Livingston <[EMAIL PROTECTED]> wrote: > Hello, > > I have code that must know where a folder inside the Resources folder of the > application is. This location must be updated whenever the app is moved to > another location. Is there some sort of callback I

Re: notification when app is moved

2008-07-16 Thread Omar Qazi
On Jul 16, 2008, at 8:28 PM, Mitchell Livingston wrote: But if the app is moved, the string that was previously returned from the call is no longer valid. So... call it again. You can do this whenever the user starts your application, or when the call returns an error saying that it can't

Re: notification when app is moved

2008-07-16 Thread Mitchell Livingston
I need the full path, yes. I know I can get it using NSBundle. But if the app is moved, the string that was previously returned from the call is no longer valid. I need to pass the location to a c library and reset the location in this library when the application is movedhttp://www.me.com/my/m

Re: notification when app is moved

2008-07-16 Thread Omar Qazi
On Jul 16, 2008, at 6:08 PM, Mitchell Livingston wrote: I have code that must know where a folder inside the Resources folder of the application is. This location must be updated whenever the app is moved to another location. Is there some sort of callback I can register to receive for thi

Re: notification when app is moved

2008-07-16 Thread Omar Qazi
On Jul 16, 2008, at 6:08 PM, Mitchell Livingston wrote: I have code that must know where a folder inside the Resources folder of the application is. This location must be updated whenever the app is moved to another location. Is there some sort of callback I can register to receive for thi

Re: notification when app is moved

2008-07-16 Thread Brett Powley
I have code that must know where a folder inside the Resources folder of the application is. This location must be updated whenever the app is moved to another location. Is there some sort of callback I can register to receive for this? [[NSBundle mainBundle] resourcePath] will

notification when app is moved

2008-07-16 Thread Mitchell Livingston
Hello, I have code that must know where a folder inside the Resources folder of the application is. This location must be updated whenever the app is moved to another location. Is there some sort of callback I can register to receive for this? Thanks, Mitchell Livingston _