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

Re: Problem with IBOutlet


  • Subject: Re: Problem with IBOutlet
  • From: Scott Herz <email@hidden>
  • Date: Thu, 5 Jul 2001 10:50:20 -0700

Should work. You're sure the connection is made from MyTableView to the button? If you select the tableview and then bring up the connection inspector, does the outlet have a dot next to it?

Scott.

On Thursday, July 5, 2001, at 08:15 AM, Quentin Mathi wrote:

I have a subclass MyTableView of NSTableView and it's the custom class of the proxy instance TableView in my main window. I have also a NSButton in the main window and I have created an outlet in MyTableView connected to it.

Here is MyTableView.h :

#import <Cocoa/Cocoa.h>

@interface MyTableView : NSTableView
{
IBOutlet id aButton;
}
@end

And here is MyTableView.m :

#import "MyTableView.h"

@implementation MyTableView
- (void)mouseDown:(NSEvent *)event
{
[aButton setTitle:@"Show more"];
}
@end

When I run the project, nothing happens when I click on the TableView in the main window, because the value of aButton is nil... why ?

Thanks.

--
Quentin Mathi
email@hidden
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Problem with IBOutlet (From: Quentin Mathé <email@hidden>)

  • Prev by Date: Re: how does one resize images to be used for textures?
  • Next by Date: Re: AppKit source available as reference?
  • Previous by thread: Re: Writing objects to disk and retrieving
  • Next by thread: Problem with IBOutlet
  • Index(es):
    • Date
    • Thread