FROM : Lon Giese
DATE : Thu Jun 08 22:59:02 2006
I am trying out the DRFileNotificationSubscription class Lon suggested
below. The page it is on had some interesting info too, but there seems
to be no way to contact the author about an error I'm getting:
#import "NSURL+NDCarbonUtilities.h" no such file or directory
apparently is is a category of NSURL, (and nothing on the page mentions
it or where to get it)
because I also get the error:
DRFileNotificationSubscription.m:38: `NSURL' may not respond to
`-getFSRef:'
getFSRef is not in NSURL.h
- (id)initForDirectoryURL:(NSURL*)url target:(id)newTarget
action:(SEL)newAction
FSRef dirRef;
BOOL ok = [url getFSRef:&dirRef];
looks like it is trying converting a NSURL into a FSRef .
I don't not sure who to ask about this. Maybe someone on the list knows
where to get NSURL+NDCarbonUtilities.h
I don't know this Carbon API well enough to write a category to do this
either.
Thanks Lon
WooHoo the ultimate Mac App for 'The Sims 2' power users.
http://www.modthesims2.com/showthread.php?p=1239629
On Jun 7, 2006, at 5:53 PM, Lon Varscsak wrote:
>> Also, cocoadev might prove fruitful
>> (http://www.cocoadev.com/index.pl?FileSystemNotifications). Look on
>> that page for DRFileNotificationSubscription ... it looks like
>> there's some useful stuff there too.
>>
>> Lon
>>
>> On Jun 7, 2006, at 5:04 PM, Lon Giese wrote:
>>
>>> Hello All, My first time to post a question to this list. Looked in
>>> the archive and don't see anything on this.
>>>
>>> I'm trying to make my application aware of file system changes
>>> similar to the way Finder is notified of changes and updates open
>>> finder windows and NSDocumentController updates the file paths of
>>> open documents. My target is 10.3.9.
>>>
>>> I registered for NSWorkspace notification exactly the way it says in
>>> Receiving Workspace Notifications
>>>
>>> I do get many workspace notifications this way but fail to get the
>>> NSWorkspaceDidPerformFileOperationNotification or any other
>>> notification for that matter after a file system change. Even when I
>>> send NSWorkspace the method noteFileSystemChanged or
>>> noteFileSystemChanged:
>>>
>>> Any insight into this would be appreciated.
>>>
>>> _______________________________________________
>>> MacOSX-dev mailing list
>>> <email_removed>
>>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
>> --------------------------------------------------------
>> "Some people, when confronted with a problem, think
>> “I know, I’ll use XML.” Now they have two problems."
>>
>> -- Phillip J. Eby, paraphrasing Jamie Zawinski
>> --------------------------------------------------------
>>
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
DATE : Thu Jun 08 22:59:02 2006
I am trying out the DRFileNotificationSubscription class Lon suggested
below. The page it is on had some interesting info too, but there seems
to be no way to contact the author about an error I'm getting:
#import "NSURL+NDCarbonUtilities.h" no such file or directory
apparently is is a category of NSURL, (and nothing on the page mentions
it or where to get it)
because I also get the error:
DRFileNotificationSubscription.m:38: `NSURL' may not respond to
`-getFSRef:'
getFSRef is not in NSURL.h
- (id)initForDirectoryURL:(NSURL*)url target:(id)newTarget
action:(SEL)newAction
FSRef dirRef;
BOOL ok = [url getFSRef:&dirRef];
looks like it is trying converting a NSURL into a FSRef .
I don't not sure who to ask about this. Maybe someone on the list knows
where to get NSURL+NDCarbonUtilities.h
I don't know this Carbon API well enough to write a category to do this
either.
Thanks Lon
WooHoo the ultimate Mac App for 'The Sims 2' power users.
http://www.modthesims2.com/showthread.php?p=1239629
On Jun 7, 2006, at 5:53 PM, Lon Varscsak wrote:
>> Also, cocoadev might prove fruitful
>> (http://www.cocoadev.com/index.pl?FileSystemNotifications). Look on
>> that page for DRFileNotificationSubscription ... it looks like
>> there's some useful stuff there too.
>>
>> Lon
>>
>> On Jun 7, 2006, at 5:04 PM, Lon Giese wrote:
>>
>>> Hello All, My first time to post a question to this list. Looked in
>>> the archive and don't see anything on this.
>>>
>>> I'm trying to make my application aware of file system changes
>>> similar to the way Finder is notified of changes and updates open
>>> finder windows and NSDocumentController updates the file paths of
>>> open documents. My target is 10.3.9.
>>>
>>> I registered for NSWorkspace notification exactly the way it says in
>>> Receiving Workspace Notifications
>>>
>>> I do get many workspace notifications this way but fail to get the
>>> NSWorkspaceDidPerformFileOperationNotification or any other
>>> notification for that matter after a file system change. Even when I
>>> send NSWorkspace the method noteFileSystemChanged or
>>> noteFileSystemChanged:
>>>
>>> Any insight into this would be appreciated.
>>>
>>> _______________________________________________
>>> MacOSX-dev mailing list
>>> <email_removed>
>>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
>> --------------------------------------------------------
>> "Some people, when confronted with a problem, think
>> “I know, I’ll use XML.” Now they have two problems."
>>
>> -- Phillip J. Eby, paraphrasing Jamie Zawinski
>> --------------------------------------------------------
>>
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
| Related mails | Author | Date |
|---|---|---|
| Lon Giese | Jun 8, 02:04 | |
| Lon Varscsak | Jun 8, 02:50 | |
| Lon Varscsak | Jun 8, 02:53 | |
| Lon Giese | Jun 8, 03:39 | |
| Lon Giese | Jun 8, 22:59 | |
| Lon Giese | Jun 9, 04:19 | |
| Jordan Krushen | Jun 9, 05:31 |






Cocoa mail archive

