• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to create a 1px width NSBox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to create a 1px width NSBox


  • Subject: Re: Trying to create a 1px width NSBox
  • From: edward taffel <email@hidden>
  • Date: Sun, 08 Mar 2015 15:11:04 -0400

derive your own custom class from NSView & render how you like in - (void)drawRect:(NSRect)dirtyRect

> On Mar 8, 2015, at 3:02 PM, Patrick J. Collins <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


References: 
 >Trying to create a 1px width NSBox (From: "Patrick J. Collins" <email@hidden>)

  • Prev by Date: Re: Trying to create a 1px width NSBox
  • Next by Date: Re: Trying to create a 1px width NSBox
  • Previous by thread: Re: Trying to create a 1px width NSBox
  • Next by thread: Re: Trying to create a 1px width NSBox
  • Index(es):
    • Date
    • Thread