Re: Connecting a button to MyView zeros integers

2015-02-15 Thread N!K
On Feb 11, 2015, at 9:56 PM, Roland King r...@rols.org wrote: On 12 Feb 2015, at 13:36, N!K pu56ucl...@alumni.purdue.edu wrote: Control-clicking the button in .xib does show the outlet panel but it does not list an IBAction, so it cannot connect to the IBAction entered into the

Re: Connecting a button to MyView zeros integers

2015-02-15 Thread N!K
On Feb 13, 2015, at 8:42 AM, David Duncan david.dun...@apple.com wrote: Since you elided your header file, this begs a question – is this iOS or OS X? This is OSX. I was following Apple’s example, which control-drags from a button to the .m file. The .h file isn’t used. I supplied the

Re: Connecting a button to MyView zeros integers

2015-02-15 Thread N!K
On Feb 13, 2015, at 6:49 AM, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 12 Feb 2015, at 06:36, N!K pu56ucl...@alumni.purdue.edu wrote: Control-clicking the button in .xib does show the outlet panel but it does not list an IBAction, so it cannot connect to the IBAction entered into

Re: Connecting a button to MyView zeros integers

2015-02-15 Thread N!K
It was left checked. Please see my reply to Dave Duncan. Nick On Feb 13, 2015, at 9:16 AM, Kyle Sluder k...@ksluder.com wrote: On Fri, Feb 13, 2015, at 10:42 AM, David Duncan wrote: Since you elided your header file, this begs a question – is this iOS or OS X? If I’m not mistaken,

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Roland King
Release the Control-drag. The assistant editor displays a Connection menu. In this menu, type the name of the action method (chooseWarrior in the screenshot below), and click Connect. [picture shows a menu with space to enter name of action] This is for adding a new outlet/action. I

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Uli Kusterer
On 12 Feb 2015, at 06:36, N!K pu56ucl...@alumni.purdue.edu wrote: Control-clicking the button in .xib does show the outlet panel but it does not list an IBAction, so it cannot connect to the IBAction entered into the MyView.h and .m files. Also, control-dragging from the button to MyView (in

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread David Duncan
Since you elided your header file, this begs a question – is this iOS or OS X? If I’m not mistaken, subclasses of NSView do not get -initWithCoder:, but rather -initWithFrame:, which begs the question of have you confirmed that your -initWithCoder: method is being called? On Feb 6, 2015, at

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Kyle Sluder
On Fri, Feb 13, 2015, at 10:42 AM, David Duncan wrote: Since you elided your header file, this begs a question – is this iOS or OS X? If I’m not mistaken, subclasses of NSView do not get -initWithCoder:, but rather -initWithFrame:, which begs the question of have you confirmed that your

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Roland King
On 14 Feb 2015, at 01:16, Kyle Sluder k...@ksluder.com wrote: On Fri, Feb 13, 2015, at 10:42 AM, David Duncan wrote: Since you elided your header file, this begs a question – is this iOS or OS X? If I’m not mistaken, subclasses of NSView do not get -initWithCoder:, but rather

Re: Connecting a button to MyView zeros integers

2015-02-11 Thread N!K
Control-clicking the button in .xib does show the outlet panel but it does not list an IBAction, so it cannot connect to the IBAction entered into the MyView.h and .m files. Also, control-dragging from the button to MyView (in .xib, not in editor) sets up the position constraints.

Re: Connecting a button to MyView zeros integers

2015-02-11 Thread Roland King
On 12 Feb 2015, at 13:36, N!K pu56ucl...@alumni.purdue.edu wrote: Control-clicking the button in .xib does show the outlet panel but it does not list an IBAction, so it cannot connect to the IBAction entered into the MyView.h and .m files. Also, control-dragging from the button to MyView

Re: Connecting a button to MyView zeros integers

2015-02-07 Thread Uli Kusterer
So quick to discount Stack Overflow. What they’re suggesting is simply how to create a new object and define a new outlet on it that points to an object in a quick way. Seems like a perfectly good answer to a problem to me, and my guess is the OP might not have quite matched it up to the right

Connecting a button to MyView zeros integers

2015-02-06 Thread N!K
I would like to connect a button to MyView class, but Xcode 6.1.1 only allows control-dragging a button to AppDelegate to create an IBAction. I have not encountered this previously. Looking for a workaround, I found this recommendation in a couple of Stack Overflow and other web pages as well

Re: Connecting a button to MyView zeros integers

2015-02-06 Thread Roland King
I have no idea what stackoverflow is suggesting here but it looks entirely wrong as usual for that junky site. You're just creating a standalone I referenced object. Right click your view in IB then wait a second and right click it again. I think it's right clicks. You will then get the