• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Events, drive mounts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Events, drive mounts


  • Subject: Re: Events, drive mounts
  • From: Shon <email@hidden>
  • Date: Wed, 15 Jun 2005 21:03:34 -0400

Thanks, it works!

--S

On 6/8/05, David Jeffery <email@hidden> wrote:
> Take a look at NSWorkspace.  You will need to do something like this:
>
>
> - (void)awakeFromNib
> {
>      ...
>
>      NSWorkspace *workspace = [NSWorkspace sharedWorkspace];
>      NSNotificationCenter *notificationCenter = [workspace
> notificationCenter];
>
>      [notificationCenter addObserver: self
>                             selector: @selector(didMount:)
>                                 name: @"NSWorkspaceDidMountNotification"
>                               object: workspace];
>      ...
>
> - (void)didMount: (NSNotification *)notification
> {
>      NSString *device = [[notification userInfo] objectForKey:
> @"NSDevicePath"];
>      ...
>
>
> David
>
> On Jun 8, 2005, at 15:47 , Shon wrote:
>
> > Is there a Cocoa framework for registering for events?  Specifically,
> > drive mount events.  The only code sample I've found is
> > CarbonCocoaTempConverter, which calls Carbon APIs for registering for
> > events.  The search results return the Carbon API documentation for
> > event handling.  Does a "pure Cocoa" event handling API (Framework?)
> > exist?
> >
> > Thanks for your help!
> >
> > --Shon
> >  _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Cocoa-dev mailing list      (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > 40comcast.net
> >
> > This email sent to email@hidden
> >
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Could not find image named `justifyalign_nib'.
      • From: Stefan Landvogt <email@hidden>
References: 
 >Events, drive mounts (From: Shon <email@hidden>)
 >Re: Events, drive mounts (From: David Jeffery <email@hidden>)

  • Prev by Date: Re: NSSliderCell does not use drawBarInside:flipped:?
  • Next by Date: nil after using Interface Builder? (n00b)
  • Previous by thread: Re: Events, drive mounts
  • Next by thread: Could not find image named `justifyalign_nib'.
  • Index(es):
    • Date
    • Thread