custom NSView: solved!
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