• 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: NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView


  • Subject: Re: NSOutlineView
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 09 Sep 2014 19:28:01 +0000

On Sep 9, 2014, at 04:16 , Charles Jenkins <email@hidden> wrote:

> Actually, if there is a space between the underscore and the name, Xcode presents a warning saying it’s extraneous. I cut and pasted the original prototypes from the documentation in order to avoid typos, and Xcode immediately displayed warning messages. Removing the space made Xcode happy.

Actually, I was wrong. Because the protocol has the underscore (followed by a space to separate it from the parameter name), it doesn’t matter what you use for your parameter name in your declaration — _outlineView, outlineView and xxx would all have been fine.

However, your solution to the problem (the warning message, that is) was pretty lousy. It wasn’t the space that was extraneous, it was the underscore, and the natural solution would be to remove the underscore. (That is, unless you *like* having variable name start with an underscore.)

Back to the original problem, assuming you haven’t already found what’s wrong:

You need to approach this systematically. Is the method called at all? Does ‘getDocumentNodeFrom’ return a non-nil value? What is the actual value of the ‘title’ property?




_______________________________________________

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: NSOutlineView
      • From: Charles Jenkins <email@hidden>
References: 
 >NSOutlineView (From: Charles Jenkins <email@hidden>)
 >Re: NSOutlineView (From: Ken Thomases <email@hidden>)
 >Re: NSOutlineView (From: Charles Jenkins <email@hidden>)
 >Re: NSOutlineView (From: Quincey Morris <email@hidden>)
 >Re: NSOutlineView (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: NSOutlineView
  • Next by Date: How to set UILabel height to even multiple of line height with auto-layout?
  • Previous by thread: Re: NSOutlineView
  • Next by thread: Re: NSOutlineView
  • Index(es):
    • Date
    • Thread