• 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
Changing a custom field editor's position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing a custom field editor's position


  • Subject: Changing a custom field editor's position
  • From: Ulai Beekam <email@hidden>
  • Date: Sun, 15 Mar 2009 16:45:43 +0000
  • Importance: Normal

Hi,

Let's say I want to have the field editor for a table view appear 2 pixel below where it usually is, i.e. shifted 2 pixels down.
How can I do this?

Consider the following hypothetical situation: If I subclass NSTextView and override the drawRect method like this,

- (void)drawRect:(NSRect)rect
{
  NSRect frame = [self frame];
  frame.origin.x += 5.0;
  [self setFrame:frame];

  [super drawRect:rect];
}

and use this subclass for the field editor of my table view, no changes occur. But shouldn't this custom field editor move by 5.0 pixels to the right on and on until it finally disappears and becomes invisible? But for some reasons that does not happen. This means that setting the frame's origin apparently has no effect.

And that is essentially why I'm all blank on how to reposition the field editor. Any ideas?

Thanks, U



_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us_______________________________________________

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

  • Follow-Ups:
    • Re: Changing a custom field editor's position
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: GUI Calls in Tool Executable seem to be No-Op. Nice, but safe?
  • Next by Date: Re: EXC_BAD_ACCESS on NSImageView::setImage
  • Previous by thread: Re: GUI Calls in Tool Executable seem to be No-Op. Nice, but safe?
  • Next by thread: Re: Changing a custom field editor's position
  • Index(es):
    • Date
    • Thread