Professional Web Applications Themes

Change Notification functions in Darwin? - Mac Programming

Hi, I'm pretty new to the Mac, having a Windows and to some extent BSD background. I'm still making my way round the doentation. Apologies if I'm asking an obvious question, but I can't find the answer. I need to use change notification functionality, e.g. a mechanism to notify an application when a change in a directory or file occurs. Windows has the ChangeNotification and CompletionPort functionality. The BSDs (Free/Net/Open) have kevent and kqueue. I can't find anything under Darwin, but I'm convinced it's got to be there somewhere. I'd prefer to keep to the BSD/Mach layers if possible, because ...

  1. #1

    Default Change Notification functions in Darwin?

    Hi,

    I'm pretty new to the Mac, having a Windows and to some extent BSD
    background. I'm still making my way round the doentation. Apologies if
    I'm asking an obvious question, but I can't find the answer.

    I need to use change notification functionality, e.g. a mechanism to notify
    an application when a change in a directory or file occurs. Windows has the
    ChangeNotification and CompletionPort functionality. The BSDs
    (Free/Net/Open) have kevent and kqueue. I can't find anything under Darwin,
    but I'm convinced it's got to be there somewhere.

    I'd prefer to keep to the BSD/Mach layers if possible, because they're not
    so unfamilar to me. The rest of the application is pure Darwin, so that
    would keep things consistent. However, I'd happily consider using Carbon,
    or whatever, to make the application work, but I don't know Carbon from a
    fish, and I've got this horrible deadline.

    Can anyone point me in the right direction?

    Thanks

    Dylan Harris


    --
    By emailing [email]e100_per_email_herentlworld.com[/email], you shall give the
    "International Campaign to Execute Spammers" e100, and you waive all rights
    if ICES finds you've committed spam.

    Dylan Guest

  2. #2

    Default Re: Change Notification functions in Darwin?

    In article <7Dxcb.52$aW.57488newsfep2-gui.server.ntli.net>, e100
    [email]_per_email_herentlworld.com[/email] says...
    > Hi,
    >
    > I'm pretty new to the Mac, having a Windows and to some extent BSD
    > background. I'm still making my way round the doentation. Apologies if
    > I'm asking an obvious question, but I can't find the answer.
    >
    > I need to use change notification functionality, e.g. a mechanism to notify
    > an application when a change in a directory or file occurs. Windows has the
    > ChangeNotification and CompletionPort functionality. The BSDs
    > (Free/Net/Open) have kevent and kqueue. I can't find anything under Darwin,
    > but I'm convinced it's got to be there somewhere.
    >
    > I'd prefer to keep to the BSD/Mach layers if possible, because they're not
    > so unfamilar to me. The rest of the application is pure Darwin, so that
    > would keep things consistent. However, I'd happily consider using Carbon,
    > or whatever, to make the application work, but I don't know Carbon from a
    > fish, and I've got this horrible deadline.
    >
    > Can anyone point me in the right direction?
    >
    > Thanks
    >
    > Dylan Harris
    >
    Panther will have kevent and kqueue
    <http://www.apple.com/server/macosx/pantherserver.html>

    James Weatherley Guest

  3. #3

    Default Re: Change Notification functions in Darwin?

    dans l'article 7Dxcb.52$aW.57488newsfep2-gui.server.ntli.net, Dylan à
    [email]e100_per_email_herentlworld.com[/email] a écrit le 25/09/03 9:47:
    > Hi,
    >
    > I'm pretty new to the Mac, having a Windows and to some extent BSD
    > background. I'm still making my way round the doentation. Apologies if
    > I'm asking an obvious question, but I can't find the answer.
    >
    > I need to use change notification functionality, e.g. a mechanism to notify
    > an application when a change in a directory or file occurs. Windows has the
    > ChangeNotification and CompletionPort functionality. The BSDs
    > (Free/Net/Open) have kevent and kqueue. I can't find anything under Darwin,
    > but I'm convinced it's got to be there somewhere.
    >
    > I'd prefer to keep to the BSD/Mach layers if possible, because they're not
    > so unfamilar to me. The rest of the application is pure Darwin, so that
    > would keep things consistent. However, I'd happily consider using Carbon,
    > or whatever, to make the application work, but I don't know Carbon from a
    > fish, and I've got this horrible deadline.
    >
    > Can anyone point me in the right direction?
    >
    > Thanks
    >
    > Dylan Harris
    >
    Have a look at the following:

    [url]http://developer.apple.com/samplecode/Sample_Code/Interapplication_Comm/Fold[/url]
    er_Watching/
    AppleEvents.c.htm


    Eric VERGNAUD Guest

  4. #4

    Default Re: Change Notification functions in Darwin?

    In article <MPG.19dcc329467f27c9896adNews.Individual.NET>,
    James Weatherley <newsweatherley.net> wrote:
    > In article <7Dxcb.52$aW.57488newsfep2-gui.server.ntli.net>, e100
    > [email]_per_email_herentlworld.com[/email] says...
    > > Hi,
    > >
    > > I'm pretty new to the Mac, having a Windows and to some extent BSD
    > > background. I'm still making my way round the doentation. Apologies if
    > > I'm asking an obvious question, but I can't find the answer.
    > >
    > > I need to use change notification functionality, e.g. a mechanism to notify
    > > an application when a change in a directory or file occurs. Windows has the
    > > ChangeNotification and CompletionPort functionality. The BSDs
    > > (Free/Net/Open) have kevent and kqueue. I can't find anything under Darwin,
    > > but I'm convinced it's got to be there somewhere.
    > >
    > > I'd prefer to keep to the BSD/Mach layers if possible, because they're not
    > > so unfamilar to me. The rest of the application is pure Darwin, so that
    > > would keep things consistent. However, I'd happily consider using Carbon,
    > > or whatever, to make the application work, but I don't know Carbon from a
    > > fish, and I've got this horrible deadline.
    > >
    > > Can anyone point me in the right direction?
    > Panther will have kevent and kqueue
    > <http://www.apple.com/server/macosx/pantherserver.html>
    And a notification API. 'man 3 notify' for details.

    -Eric

    --
    Eric Albert [email]ejalbertstanford.edu[/email]
    [url]http://rescomp.stanford.edu/~ejalbert/[/url]
    Eric Albert Guest

  5. #5

    Default Re: Change Notification functions in Darwin?

    Thanks, everyone, for your help.

    Dylan Harris

    --
    By emailing [email]e100_per_email_herentlworld.com[/email], you shall give the
    "International Campaign to Execute Spammers" e100, and you waive all rights
    if ICES finds you've committed spam.

    Dylan Guest

Similar Threads

  1. Question HOw to create notification in asp.net 3.5 like the notification on facebook
    By yogini26.yyy@gmail.com in forum Brainstorming Area
    Replies: 0
    Last Post: September 22nd, 02:33 PM
  2. Form change notification
    By artacus in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: April 16th, 12:31 AM
  3. #25733 [Opn->Bgs]: Change error-report for functions
    By sniper@php.net in forum PHP Development
    Replies: 0
    Last Post: October 2nd, 09:25 PM
  4. #25733 [NEW]: Change error-report for functions
    By tularis@php.net in forum PHP Development
    Replies: 0
    Last Post: October 2nd, 04:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139