开发者

Changing how IKImageBrowserView indicates the drop position

I can make a single row IKImageBrowserView by setting the

[imageBrowser开发者_运维问答 setContentResizingMask:NSViewWidthSizable];

but in this case while i drag an image inside image browser to rearrange it, the drop place highlights with horizontal line(vertical line expected).

how can this be changed?

Many thanks.


There is no defined way to do what you want.

You may be better off writing your own custom view where you can control every detail of how things are drawn. In general, Apple's controls are "as-is" and unless they provide an explicit way to control behavior or mention that you can custom an object in some way, don't count on being able to do it easily (if at all).

I would also suggest heading to http://bugreport.apple.com and making the enhancement request - it would be best if you attached a sample application demonstrating the behavior.

EDIT: You could also try out the NSCollectionView to see if it might work for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜