• 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
custom NSView: solved!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom NSView: solved!


  • Subject: custom NSView: solved!
  • From: Peter Browne <email@hidden>
  • Date: Tue, 14 Sep 2004 23:37:29 +0100

The problem was this: I wanted an NSTextField to display as a string the coordinates of a mouse click in the custom view. Whenever mouseDown: was called, nothing would happen. The app built with no errors, but an NSLog showed the connection to the textfield to be broken when the string was sent. After being sent a working example by Matt Neuburg, comparing it with my own and fiddling around, I discovered what was going wrong. It seems that I had instantiated the custom view class in interface builder, and had connected the outlets using the instance, rather than the physical view itself in the interface builder window. I don't know if there is a rational explanation for this, but it would seem that my custom view outlets only worked if i did NOT use an instance to connect the outlets with.

Pete

_______________________________________________
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: [Moderator] Cocoa and list resources
  • Next by Date: Re: XCode Unknown class
  • Previous by thread: Re: [Moderator] Cocoa and list resources
  • Next by thread: Re: custom NSView: solved!
  • Index(es):
    • Date
    • Thread