• 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
OpenGL + NSTextView/NSTextContainer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenGL + NSTextView/NSTextContainer?


  • Subject: OpenGL + NSTextView/NSTextContainer?
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Tue, 18 Nov 2008 14:14:46 -0500
  • Thread-topic: OpenGL + NSTextView/NSTextContainer?

I've recently been (mentally) exploring some potential user interfaces, and thought up one that I'd like to implement if it is possible.  The problem is that I don't know much about OpenGL, or NSTextView/NSTextContainer, so I need to bounce my questions off of people with knowledge/experience.

For the first thing I want to do, I want to be able to float lines/arrows 'above' the text in a text view.  The idea is that I can have related items all be linked together by a floating starfish-like set of arrows.  The reason for the levels is that more local things can be at a lower level, and more global things at a higher level.  A concrete use of this would be for something like use-def chains in a program; the more local the use-defs are, the lower level the arrows are.  As you scroll the text, you get an immediate feel for how wide-ranging variables are from how high above the text they float.

For the next thing, I want to be able to deform the text view in the z dimension.  Basically, I want to be looking 'down' onto stairsteps of text.  A concrete use of this would be to show the depth of the statements in various blocks, like the following:

int main (void)			// At highest level
{
	if (foo)			// One level lower
		printf("foo");	// One level lower
}				// At highest level

Now, before everyone gives me alternatives that are doable within what NSTextView does right now, please understand that the above are examples ONLY; there are other possible uses of this kind of technique, and I'd like a chance to explore them, not find alternatives that also work.  I really want to know if I can do exactly what I've described above.

So, can I do it, or is it impossible?

Thanks,
Cem Karan
_______________________________________________

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

  • Prev by Date: Re: Regex
  • Next by Date: Re: How to get notification of rerun application
  • Previous by thread: Re: Code-sign & Services HotKey Modifications
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 1970
  • Index(es):
    • Date
    • Thread