Re: Error unwrapping an optional which isn't an optional

2015-09-21 Thread John Daniel
I think the optional in question is the IB object. You may be accessing this property before your nib is completely setup. John Daniel Sent from my iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: Error unwrapping an optional which isn't an optional

2015-09-21 Thread Charles Srstka
> On Sep 21, 2015, at 6:03 PM, Greg Parker wrote: > > selectedRow's "row index or -1" behavior is an obvious candidate for a Swift > optional, but we don't currently have a good way to bridge such API with > Objective-C. How about allowing the “nullable” keyword on non-pointer types, but addin

Re: Error unwrapping an optional which isn't an optional

2015-09-21 Thread Greg Parker
> On Sep 21, 2015, at 11:01 AM, Alex Hall wrote: > > Hi list, > I'm setting up a binding using an NSController, which I want to connect the > currently selected row in a table to the values of some UI controls. Put > another way, whenever the table's selected row changes, the binding should >

Re: Error unwrapping an optional which isn't an optional

2015-09-21 Thread Quincey Morris
On Sep 21, 2015, at 11:01 , Alex Hall wrote: > > I'm setting up a binding using an NSController, which I want to connect the > currently selected row in a table to the values of some UI controls. Put > another way, whenever the table's selected row changes, the binding should > cause some cont