Change Notification functions in Darwin?

Ask a Question related to Mac Programming, Design and Development.

  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 documentation. 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_here@ntlworld.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. Similar Questions and Discussions

    1. Form change notification
      It's pretty typical for apps to keep track of when a user makes a change to an item, then prompt the user if he tries to navigate away without...
    2. Where to get in.telnetd and rlogind for Mac OS X 10.3/Darwin
      See subject line. Since upgrading to 10.3, only sshd is available. Don't care for the overhead of ssh, nor having to download and install clients...
    3. [PHP-DEV] demo patch for s*printf probs on darwin
      ---1062731243-1012306635-1066094383=:19690 Content-Type: TEXT/PLAIN; charset=US-ASCII the php 5 cvs code is not compiling on OS X 10.2 as-is...
    4. #25733 [Opn->Bgs]: Change error-report for functions
      ID: 25733 Updated by: sniper@php.net Reported By: tularis@php.net -Status: Open +Status: Bogus Bug...
    5. #25733 [NEW]: Change error-report for functions
      From: tularis@php.net Operating system: any PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug description: ...
  3. #2

    Default Re: Change Notification functions in Darwin?

    In article <7Dxcb.52$aW.57488@newsfep2-gui.server.ntli.net>, e100
    [email]_per_email_here@ntlworld.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 documentation. 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

  4. #3

    Default Re: Change Notification functions in Darwin?

    dans l'article 7Dxcb.52$aW.57488@newsfep2-gui.server.ntli.net, Dylan à
    [email]e100_per_email_here@ntlworld.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 documentation. 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

  5. #4

    Default Re: Change Notification functions in Darwin?

    In article <MPG.19dcc329467f27c9896ad@News.Individual.NET>,
    James Weatherley <news@weatherley.net> wrote:
    > In article <7Dxcb.52$aW.57488@newsfep2-gui.server.ntli.net>, e100
    > [email]_per_email_here@ntlworld.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 documentation. 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]ejalbert@stanford.edu[/email]
    [url]http://rescomp.stanford.edu/~ejalbert/[/url]
    Eric Albert Guest

  6. #5

    Default Re: Change Notification functions in Darwin?

    Thanks, everyone, for your help.

    Dylan Harris

    --
    By emailing [email]e100_per_email_here@ntlworld.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

Posting Permissions

  • You may not post new threads
  • You may 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