• 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: "Illegal NSOutlineView data source" Xcode message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Illegal NSOutlineView data source" Xcode message


  • Subject: Re: "Illegal NSOutlineView data source" Xcode message
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 11 Jun 2014 13:44:07 -0400

Online search shows that others have reported receiving the same error message occasionally over the last few years. I have tried all of the proposed solutions whether they reportedly worked or not, without success. I have confirmed that I did not make the errors that others have reported in the past, such as failing to connect the dataSource outlet. In fact, I know that I did everything right, because my application was working yesterday.

Here's what I've tried so far. Is there anything else I should try?

1. I eyeballed the code intensively. This revealed no errors, and I see the required datasource methods right where they're supposed to be.

2. I looked at the Xcode menu item listing all methods, and the datasource methods show up, which confirms that they are implemented.

3. I moved the datasource methods to the top of the @implementation part to make sure I hadn't overlooked any intervening typing or cut-and-paste errors and rebuilt, but I get the same error.

4. I modified -awakeFromNib to call the datasource methods explicitly and reubilt. The breakpoints that I set within them are reached, so Xcode sees the datasource methods to run them.

5. In the nib file, I confirmed that the outline view's dataSource and delegate outlets are correctly connected to the file's owner, my view controller. I even disconnected and reconnected them and then rebuilt, but it makes no difference.

6. I confirmed that I had declared conformance to the datasource protocol. I even tried removing the declaration of conformance, but it makes no difference. (I also sent a -conformsToProtocol:@protocol(NSOutlineviewDataSource)] message to my controller and it reported YES, but that's only because I declared that it conforms in the @interface part.)

7. I declared the datasource methods in the @interface part even though that isn't required for datasource methods when conformance to the protocol is declared, but it makes no difference.

8. I removed the project's workspace index by removing the derived data in Xcode's Organizer and rebuilt the project to rebuild the index, but it makes no difference.

-- 

Bill Cheeseman - email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: "Illegal NSOutlineView data source" Xcode message
      • From: Scott Ribe <email@hidden>
  • Prev by Date: "Illegal NSOutlineView data source" Xcode message
  • Next by Date: Re: "Illegal NSOutlineView data source" Xcode message
  • Previous by thread: "Illegal NSOutlineView data source" Xcode message
  • Next by thread: Re: "Illegal NSOutlineView data source" Xcode message
  • Index(es):
    • Date
    • Thread