If you have layers enabled, you can just use an ordinary 1pt wide NSView and 
set the background color of its layer to black (or whatever color you want).  
No need to subclass.

Thanks,
Jon


> On Mar 8, 2015, at 12:02 PM, Patrick J. Collins 
> <patr...@collinatorstudios.com> wrote:
> 
> I am trying to create a "playhead" that will move across a waveform, and
> IB shows a "Vertical line" component which looks exactly what I want..
> Except it seems to have a default unchangable width of 5px... ???
> I tried setting the borderType property to NSNoBorder but that
> made no difference.
> 
> How can I get a simple 1px solid colored object that I can use for
> this purpose?
> 
> Patrick J. Collins
> http://collinatorstudios.com
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/jhull%40gbis.com
> 
> This email sent to jh...@gbis.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to