Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8568893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:12:32+00:00 2026-06-11T18:12:32+00:00

I have a custom NSOutlineView with a cell based structure. I have hooked a

  • 0

I have a custom NSOutlineView with a cell based structure.
I have hooked a custom cell for the outlineView.
For each row in the outline view, I have hooked a custom Data Model object for each Row in the outlineview.
I have hooked the node object using following methods:

  • (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item
  • (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item
  • (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)theColumn byItem:(id)item

Now I need to access the data Model object in my Custom Cell Class’s drawInteriorWithFrame:: method in order to draw it accordingly.

I tried using [self objectValue] in Custom Cell Class, but it does not return me the object I passed it as ObjectValue.

Is there anything wrong in my approach? Or is there any way to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:12:34+00:00Added an answer on June 11, 2026 at 6:12 pm

    I do not know what is happening with the objectValue of the cell. But one way to handle this would be to add a property or member variable to your Cell subclass to hold a reference to your model object. Then you can use that within drawInteriorWithFrame:. Be sure to nil the reference in dealloc if you are not using ARC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I my outline view, i am adding Custom cell, To drawing custom cell, i
I have text fields inside a custom view inside an NSOutlineView . Editing one
I have an NSOutlineView with a custom NSOutlineViewDataSource based on the parent-child relationship or
I have a view based NSOutlineView which displays entries (Source entity) from a Core
I have custom UITableViewCell . It contains UITextLabel . When I press this cell
i have custom cell with 2 buttons(the function of these buttons is just to
I have custom UITableViewCell s as well as headers and footers. Each of them
I have custom cell which contains number of rows in it.i want to write
I have custom object MyClass and I need to create 3 instances of it.
i have this simplified Model: https://i.stack.imgur.com/d2WsV.png I have these Elements ordered in an NSOutlineView

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.