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 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 N

Re: Connecting a button to MyView zeros integers

2015-02-15 Thread N!K
On Feb 13, 2015, at 6:49 AM, Uli Kusterer wrote: > On 12 Feb 2015, at 06:36, N!K 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

Re: Connecting a button to MyView zeros integers

2015-02-15 Thread N!K
On Feb 13, 2015, at 8:42 AM, David Duncan 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 shortest possible file to a

Re: Connecting a button to MyView zeros integers

2015-02-15 Thread N!K
On Feb 11, 2015, at 9:56 PM, Roland King wrote: > >> On 12 Feb 2015, at 13:36, N!K 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-d

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Roland King
> On 14 Feb 2015, at 01:16, Kyle Sluder 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 -initWithFrame

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 you

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 6

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 out

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Uli Kusterer
On 12 Feb 2015, at 06:36, N!K 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 > .xib, not in editor) se

Re: Connecting a button to MyView zeros integers

2015-02-11 Thread Roland King
> On 12 Feb 2015, at 13:36, N!K 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 > .xib, not in edit

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. Control-draggi

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 q

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 outlet