• 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: [NSTableView selectedRow] is always 0?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSTableView selectedRow] is always 0?


  • Subject: Re: [NSTableView selectedRow] is always 0?
  • From: Ben Kazez <email@hidden>
  • Date: Thu, 16 Feb 2006 09:16:57 -0600

On Feb 16, 2006, at 12:51 AM, email@hidden wrote:

Message: 11
Date: Wed, 15 Feb 2006 21:15:33 -0500
From: Andy Lee <email@hidden>
Subject: Re: [NSTableView selectedRow] is always 0?
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

On Feb 15, 2006, at 8:12 PM, Juan P. Pertierra wrote:
I'm calling reloadData and noteRowsDidChange when every item is
added.  Yet, selectedRow always returns 0.  Any ideas?

Are you sure you're sending -selectedRow to the actual table view, and not nil? Sounds like you might have an uninitialized variable.

This could be caused by an unconnected IBOutlet. (Unconnected IBOutlets are uninitialized instance variables, so they're nil.) I would check the connections in Interface Builder.


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


  • Prev by Date: Re: Warnings due to depricated functions--Help needed
  • Next by Date: Re: Automator-like UI?
  • Previous by thread: Re: [NSTableView selectedRow] is always 0?
  • Next by thread: how to share class between controller and data source
  • Index(es):
    • Date
    • Thread