• 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: Joshua Garnham <email@hidden>
  • Date: Mon, 7 Sep 2009 17:20:01 +0000 (GMT)

This.

- (IBAction)remove:(id)sender {
    NSArray *selectedRow = [treeController selectedObjects];
    NSInteger childrenCount = [selectedRow.children count];
    if ([childrenCount != 0])
    {
        NSLog(@"Display Alert");
    }else{
        NSLog(@"Delete Imediately");
    }
}




________________________________
From: Kyle Sluder <email@hidden>
To: Joshua Garnham <email@hidden>
Cc: "email@hidden" <email@hidden>
Sent: Monday, 7 September, 2009 17:52:26
Subject: Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.

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

> How would I do this?

http://www.whathaveyoutried.com

--Kyle Sluder




_______________________________________________

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: Kyle Sluder <email@hidden>
    • Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.
      • From: Volker in Lists <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>)
 >Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children. (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: How to play the movie(.mov) looped using QTMovie ?
  • Next by Date: Re: Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children.
  • Previous by thread: Re: 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