• 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: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.


  • Subject: Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.
  • From: Steven Degutis <email@hidden>
  • Date: Mon, 7 Sep 2009 11:20:50 -0500

Josh,
The outline view is probably being displayed with an NSArrayController, not
just "Core Data", which is an abstract term for a ton of APIs. As well,
NSArrayController falls into part of Cocoa, as well as Core Data, but that's
another story.

Assuming your row is "removed" via an outlet to your NSArrayController's
-remove: method, and assuming you're using NSArrayController for this in the
first place, simply subclass your NSArrayController and provide the NSAlert
behavior by overriding -remove: and then call super's -remove: once the
NSAlert has come back positive (for chlamydia).

--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/


On Mon, Sep 7, 2009 at 10:14 AM, Joshua Garnham
<email@hidden>wrote:

> How would I do this?
> The Outline View is being used with Core Data.
>
> Cheers,
> Josh.
>
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.
      • From: Joshua Garnham <email@hidden>
References: 
 >Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children. (From: Joshua Garnham <email@hidden>)

  • Prev by Date: mouseDown Event Position Accuracy (was: NSString drawAtPoint and vertical font alignment)
  • Next by Date: Re: mouseDown Event Position Accuracy (was: NSString drawAtPoint and vertical font alignment)
  • Previous by thread: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.
  • Next by thread: Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.
  • Index(es):
    • Date
    • Thread