• 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
ScalingScrollView with Sketch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ScalingScrollView with Sketch


  • Subject: ScalingScrollView with Sketch
  • From: Eric Forget <email@hidden>
  • Date: Mon, 16 Feb 2004 00:22:58 -0500

Hi,

In the application I'm writing, I'm using Sketch derived code. I'm having
some difficulties with scaling, specially with the SKTTextArea "model". To
reproduce the problems you need to add the ScalingScrollView class from
TextEdit sample and replace the NSScrollView by ScalingScrollView in the
DrawWindow.nib (it takes less than 2 minutes doing it!).

The problems are:

1) As long as you do not scale, everything is fine

2) If you scale up (or down) and back to 100% all the text drawing are
glitchy when editing the text. If don't see them, just change the font.

I've been able to reduce the problem as this:

[self setBoundsSize:[self bounds].size];

The last line seems to create an unrecoverable error, even when bounds.size
is equal to frame.size. I'm pretty sure there is a way to get around that.
Keynote, OmniGraffle do not have those glitches...

Any help will be really appreciated...

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: ScalingScrollView with Sketch [workaround]
      • From: Eric Forget <email@hidden>
  • Prev by Date: Re: calling method via IMP that returns non id type - compiler warning
  • Next by Date: Re: Better way to deal with NSFontPanel in a preference pane
  • Previous by thread: Re: Better way to deal with NSFontPanel in a preference pane
  • Next by thread: Re: ScalingScrollView with Sketch [workaround]
  • Index(es):
    • Date
    • Thread