• 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: Cannot get hidden NSTextView to show (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot get hidden NSTextView to show (SOLVED)


  • Subject: Re: Cannot get hidden NSTextView to show (SOLVED)
  • From: Sam Stigler <email@hidden>
  • Date: Sun, 20 May 2007 17:50:58 +1000

I agree it does sound really off that it would be += for both cases. It's really odd that it works. If anyone more experienced at programming expanding views wants to chip in as to why this is, please feel free.

I posted your reply; the only reason I didn't earlier is I clicked on "Reply" by mistake, instead of "Reply All."


-Sam http://www.stigler.org/sam/wordpress


On May 20, 2007, at 2:30 PM, Aaron Burghardt wrote:

Cool. I didn't actually try it, but i figured if I had the +/-'s screwed up you would figure it out. So, the origin.y is now += for both cases? That sounds wrong--I would expect the delta to be opposite for the two different conditions.

BTW, feel free to post my reply if you want to. I didn't reply on the list in case it wasn't applicable to what you were doing (or correct!).

Aaron

On May 20, 2007, at 12:06 AM, Sam Stigler wrote:

Hi Aaron,

Thanks for that "pimp." It really did make the code look a lot cleaner; a lot easier to read. The one weird thing that was happening was that whenever I would hide the expanded view (i.e., the disclosure button was in its off state), the entire window would slide to the bottom of where the expanded view had been. I finally figured out that I had to change the line: windowFrame.origin.y -= boxHeight to a +=. I still really do not completely understand why; all I know is that for some reason it worked.

Sam



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Cannot get hidden NSTextView to show (From: Sam Stigler <email@hidden>)
 >Re: Cannot get hidden NSTextView to show (SOLVED) (From: Sam Stigler <email@hidden>)

  • Prev by Date: Re: Cannot get hidden NSTextView to show ( Sam )
  • Next by Date: Extra pages when printing
  • Previous by thread: Re: Cannot get hidden NSTextView to show (SOLVED)
  • Next by thread: Cannot get hidden NSTextView to show ( Sam )
  • Index(es):
    • Date
    • Thread