Re: [IB] Cells vs Controls in the Library
Re: [IB] Cells vs Controls in the Library
- Subject: Re: [IB] Cells vs Controls in the Library
- From: Christiaan Hofman <email@hidden>
- Date: Tue, 24 Aug 2010 18:04:09 +0200
On Aug 24, 2010, at 17:14, Stéphane Sudre wrote:
>
> On Aug 24, 2010, at 5:05 PM, Christiaan Hofman wrote:
>
>> Other examples are in NSTableView and NSMatrix, on which you (essentially) can drop both views and cells, but these drops behave very differently.
>
> Can you provide instructions on how to drop a view in a NSTableView?
>
Apparently IB is fooling me and it only looks as if it adds it to the superview. But you CAN drop views on that area (and I also have used that fact in one of my nibs). And it also does not change the fact that in principle such a thing could be done, it's just that in practice this one doesn't, but in principle it could have (and then it would add it as a subview). My point is that you want to change the fundamentals of what's dragged, but that can only can work when you can argue in principle that this always works. And this is still an argument that in principle you could not assume that the drop target can only accept either one or the other. If not with NSTableView, it could happen with a custom class. You should never make general assumptions based on specific examples.
Christiaan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden