NSTextView HICocoaView performance

2009-04-09 Thread Ryan Joseph
I was really excited when Apple released HICocoaView so in particular I could use NSTextView in my Carbon apps. However, this thing has some pretty serious performance issue when resizing and when adding/ removing lines (return or deleting while type). Resizing is painfully slow and choppy b

navigate in and around xib files

2009-04-09 Thread developers mac
Hi there, I used the code below to navigate between UITableViewController. SearchAthleteNameViewController *searchAthletesVC = [[[SearchAthleteNameViewController alloc] initWithNibName:storyLink bundle:nil] autorelease]; [self.navigationController pushViewController:searchAthletesVC anim

Re: IKImageBrowserView crash

2009-04-09 Thread jonat...@mugginsoft.com
I don't have a solution just a couple of suggestions. As GC is enabled you can try temporarily disabling the collector. Bracket the crashing code segment with: [[NSGarbageCollector defaultCollector] disable]; // crashing code [[NSGarbageCollector defaultCollector] enable]; Otherwise I can onl

Send click to window

2009-04-09 Thread Benjamin Mollenhauer
Hi! Is it possible to send a simulated mouse click to a specific window, overlapped by others? The application i want to automate as no AXActions other than AXRaise for the main window. I already tried to focus the window and then click (via CGPostMouseEvent), but this interferes with use

Re: Send click to window

2009-04-09 Thread Benjamin Mollenhauer
Is it possible to send a simulated mouse click to a specific window, overlapped by others? Benjamin - Have you tried creating your custom NSEvent objects and passing them to NSApplication's -sendEvent:? Thanks for your quick answer. Maybe I was not specific enough: I want to control window

Re: navigate in and around xib files

2009-04-09 Thread Alexander Spohr
Am 09.04.2009 um 10:54 schrieb developers mac: Now, I have to navigate to NSObject from an UItableViewController. I tried using the same, i cannot find the method, initwithNibName to make it navigate. And also it shows an warning in the next line & a cfrunloop prevails. can some one suggest/

Re: Send click to window

2009-04-09 Thread Dave Keck
> I quickly tested CGEventPostToPSN() and was able to click Safari's > menu bar from my test app, but was not able to click inside Safari's. Sorry, that was meant to say: ...but was not able to click inside Safari's windows. ___ Cocoa-dev mailing list

Re: removeFromSuperview and mouse events

2009-04-09 Thread Alexander Spohr
Try setSubviews: Just get the subviews, sort then and setSubviews: Documentation: „And any views that are in both subviews and newSubviews are moved in the subviews array as needed, without being removed and re-added.“ atze Am 08.04.2009 um 23:26 schrieb Joshua Strickon: I have a p

Re: Send click to window

2009-04-09 Thread Kyle Sluder
On Thu, Apr 9, 2009 at 6:50 AM, Benjamin Mollenhauer wrote: > Thanks for your quick answer. Maybe I was not specific enough: > I want to control windows from foreign applications. > Hence i tired it with the Accessibility API. You can only do this with the accessibility API. By default this is t

Re: Send click to window

2009-04-09 Thread Dave Keck
> Is it possible to send a simulated mouse click to a specific window, > overlapped by others? CGEventPostToPSN() is what you want - but unfortunately it looks like a little hackery will be involved to get it working. NSEvent has a 'windowNumber' property associated with it, but it doesn't look li

removeFromSuperview and mouse events

2009-04-09 Thread Joshua Strickon
I have a project in which I am adding nsbox controls as a subviews to the main nsview. As a test, I do this on a rightmousedown. I then use the leftmousedown to select and move the boxes around. This all works fine. The problem I am having is that I would like the selected object to be d

Re: Send click to window

2009-04-09 Thread Luca C.
2009/4/9 Benjamin Mollenhauer > Hi! > > Is it possible to send a simulated mouse click to a specific window, > overlapped by others? Benjamin - Have you tried creating your custom NSEvent objects and passing them to NSApplication's -sendEvent:? NSEvent class reference < http://developer.apple

Re: Send click to window

2009-04-09 Thread Kyle Sluder
Ah, for some reason I interpreted your message as wanting to send arbitrary messages to objects in another process. My mistake. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

find out where is a key equivalent assigned

2009-04-09 Thread Georg Seifert
Hello, I have a old project with a big nib file and it seems that somewhere is a key equivalent defined for "ctrl+left cursor key". If I press "ctrl+left cursor key" nothing happend (option+left and everything else works fine). I even tried subclassing NSApplication to track the event han

Using authorization to enumerate restricted folders?

2009-04-09 Thread Oleg Krupnov
I want to programmatically enumerate files within a folder with restricted access (such as home folder of another user), similar to using sudo command in Terminal. I have read the "Performing Privileged Operations With Authorization Services" guide and I have written the code that creates the auth

Re: Storing bundle loaded main class instances in NSArray

2009-04-09 Thread Daniel Luis dos Santos
Summarizing the behaviour I see here If I add an object (which is the principal class of a bundle) to an NSMutableArray, later in the program I get the exception that the NSFileManager default manager object does not respond to a known message selector. I further narrowed it down to a frea

HUD-Style buttons

2009-04-09 Thread Walker Argendeli
I think I'm missing something obvious here. I have a HUD window that I need buttons in. The button style that looks closest to what I want is recessed, but that's not exactly what I'd like. See, that way, there's no border, and the text is black unless the button is selected. What I'd l

Re: HUD-Style buttons

2009-04-09 Thread jonat...@mugginsoft.com
Check out the BWToolkit. http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolkit/ On 9 Apr 2009, at 15:08, Walker Argendeli wrote: I think I'm missing something obvious here. I have a HUD window that I need buttons in. The button style that looks closest to what I want is recess

Re: HUD-Style buttons

2009-04-09 Thread Guillaume Laurent
On Thu, 9 Apr 2009 15:24:29 +0100, "jonat...@mugginsoft.com" wrote: > Check out the BWToolkit. > http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolkit/ > Naive beginner question : why aren't these UI elements/styles available in IB by default ? Apple decision ? -- Guillaume http://

Re: Storing bundle loaded main class instances in NSArray

2009-04-09 Thread Alexander Spohr
Sorry I did not follow this thread as I thought it was a clear malloc/ free error. size_t fread(void * restrict ptr, size_t size, size_t nmemb, FILE * restrict stream); Where is your ptr coming from? If you comment out fread but rthe just crash somewhere else I’d bet your ptr or strea

Re: NSTextView HICocoaView performance

2009-04-09 Thread Ryan Joseph
On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote: On Apr 9, 2009, at 1:06 , Ryan Joseph wrote: I was really excited when Apple released HICocoaView so in particular I could use NSTextView in my Carbon apps. However, this thing has some pretty serious performance issue when resizing and w

Re: HUD-Style buttons

2009-04-09 Thread Kyle Sluder
On Thu, Apr 9, 2009 at 10:39 AM, Guillaume Laurent wrote: > Naive beginner question : why aren't these UI elements/styles available in > IB by default ? Apple decision ? Who knows? Ran out of time, maybe. If you want official Apple HUD-style controls (I think we all do -- of course, no offense

Re: HUD-Style buttons

2009-04-09 Thread Walker Argendeli
I also found this one: http://code.google.com/p/bghudappkit/ Doe anyone have experience with either one or have a preference? - Walker Argendeli On Apr 9, 2009, at 10:23 AM, jonat...@mugginsoft.com wrote: Checkout the BWToolkit http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolki

Re: Using authorization to enumerate restricted folders?

2009-04-09 Thread Kyle Sluder
On Thu, Apr 9, 2009 at 9:54 AM, Oleg Krupnov wrote: > Now I am puzzled what do I do next? How do I use this authorization > reference, how do I pass it to the file manipulation functions? You spawn a setuid root process to do the work. See the BetterAuthorizationSample for more: http://developer

Re: HUD-Style buttons

2009-04-09 Thread Randall Meadows
On Apr 9, 2009, at 8:57 AM, Walker Argendeli wrote: I also found this one: http://code.google.com/p/bghudappkit/ Doe anyone have experience with either one or have a preference? I've used BGHUDAppKit; I'm really satisfied with it, with the exception that it does not understand that scrollba

Re: IKImageBrowserView crash

2009-04-09 Thread Bill Bumgarner
On Apr 8, 2009, at 12:36 PM, Ashley Clark wrote: Thread 0 Crashed: 0 GLEngine0x1e4daf17 glDeleteTextures_Exec + 23 1 libGL.dylib 0x941cc476 glDeleteTextures + 38 2 com.apple.imageKit 0x93aa4684 _deleteTextureForIKGLI

Re: NSTextView HICocoaView performance

2009-04-09 Thread Ryan Joseph
On Apr 9, 2009, at 10:22 PM, Marcel Weiher wrote: On Apr 9, 2009, at 7:51 , Ryan Joseph wrote: On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote: On Apr 9, 2009, at 1:06 , Ryan Joseph wrote: [NSTextView in HICocoaView performance problems] [requests for more information] I have used NSTe

Re: Floating window on top of everything

2009-04-09 Thread Matt Neuburg
On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" : > On 08 Apr 09, at 08:03, Matt Neuburg wrote: >> On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli >> said: >>> I am making a simple application that consists of a small HUD window >>> that needs to float above another application. How

Re: Path from NSFileHandle?

2009-04-09 Thread Michael Ash
On Thu, Apr 9, 2009 at 12:11 AM, Adam R. Maxwell wrote: > I recently noticed that you can use F_GETPATH with fcntl(2), but I've no > idea what caveats are associated with it.  It might be easier than messing > with inodes directly, anyway? Good call. I had actually seen this before, but forgot wh

Re: Path from NSFileHandle?

2009-04-09 Thread Michael Ash
On Thu, Apr 9, 2009 at 12:55 AM, Erg Consultant wrote: > Unfortunately I can't do that as my class are wrappers around the ANSI file > I/O calls such as fopen, etc. - so I have to match their prototypes. Can you explain this in more detail? fopen and friends do not deal with NSFileHandle, so it

Re: Using authorization to enumerate restricted folders?

2009-04-09 Thread Oleg Krupnov
Thanks, Kyle. Isn't there really a way to do the work in the same process? It seems quite tedious to transfer my existing directory-scanning code into a separate process and set up the communication between the processes... On Thu, Apr 9, 2009 at 5:59 PM, Kyle Sluder wrote: > On Thu, Apr 9, 2009

Re: Using authorization to enumerate restricted folders?

2009-04-09 Thread Michael Ash
On Thu, Apr 9, 2009 at 11:57 AM, Oleg Krupnov wrote: > Thanks, Kyle. Isn't there really a way to do the work in the same > process? It seems quite tedious to transfer my existing > directory-scanning code into a separate process and set up the > communication between the processes... There really

Re: Floating window on top of everything

2009-04-09 Thread Benjamin Dobson
On 9 Apr 2009, at 16:49:48, Matt Neuburg wrote: On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" >: On 08 Apr 09, at 08:03, Matt Neuburg wrote: On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli said: I am making a simple application that consists of a small HUD window that needs

Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...

2009-04-09 Thread david paeme
This might be more interesting... looks like the thing some crash down in the bowels of LocaleGetValue? As you probably gather, I have absolutely no idea what's going on in there... i've changed the code that launches this into the asymmetric request version for httpurlconnection (= threade

Sqlite3

2009-04-09 Thread fawad shafi
Dear All, i m working on sqlite3 database, problem is this that, when i insert data in database from xcode, n after this when i go to sqlite3 terminal. the data is not available there. more strange is that after inserting data from app, when i try to access the records, i can access. But af

FW: Cache

2009-04-09 Thread fawad shafi
Dear All, i m working on UIWebView, i want that if any page displayed in UIWebView. it should store in cache, but with that page all its embeded images, css files, javascript files should be stored in cache. When i called the page from cache, all the images,css files ,javascript files shou

Re: NSTextView HICocoaView performance

2009-04-09 Thread Marcel Weiher
On Apr 9, 2009, at 1:06 , Ryan Joseph wrote: I was really excited when Apple released HICocoaView so in particular I could use NSTextView in my Carbon apps. However, this thing has some pretty serious performance issue when resizing and when adding/removing lines (return or deleting while

Re: NSTextView HICocoaView performance

2009-04-09 Thread Marcel Weiher
On Apr 9, 2009, at 7:51 , Ryan Joseph wrote: On Apr 9, 2009, at 9:42 PM, Marcel Weiher wrote: On Apr 9, 2009, at 1:06 , Ryan Joseph wrote: [NSTextView in HICocoaView performance problems] [requests for more information] I have used NSTextView in Cocoa windows without the HICocoaView and

Re: Sqlite3

2009-04-09 Thread Drew Lawson
According to fawad shafi: > i m working on sqlite3 database, problem is this that, when i > insert data in database from xcode, n after this when i go to > sqlite3 terminal. the data is not available there. > > more strange is that after inserting data from app, when i try > to access the records

Re: FW: Cache

2009-04-09 Thread I. Savant
On Thu, Apr 9, 2009 at 10:06 AM, fawad shafi wrote: > somebody help me! You're being obnoxious. If anybody has an answer for you, they'll answer your thread, but re-posting and adding the demand 'somebody help me!' just adds noise to the list, which only manages to annoy people enoug

Re: find out where is a key equivalent assigned

2009-04-09 Thread Quincey Morris
On Apr 9, 2009, at 05:49, Georg Seifert wrote: I have a old project with a big nib file and it seems that somewhere is a key equivalent defined for "ctrl+left cursor key". If I press "ctrl+left cursor key" nothing happend (option+left and everything else works fine). I even tried subclass

Re: finder file size

2009-04-09 Thread Scott Ribe
> Neither of these two sentences makes any sense for me. "Carbon" originally meant "the Classic Mac OS Toolbox APIs, as adapted to work on OS X". But Apple has been evolving the meaning, by rebranding those parts of the APIs that will live on in 64-bit and beyond to be "Core" APIs, while "Carbon"

Re: HUD-Style buttons

2009-04-09 Thread Mike Glass
I use BWToolkit in practically every desktop app I work on, and it's fantastic. I can't recommend it enough. On Apr 9, 2009, at 10:57 AM, Walker Argendeli wrote: I also found this one: http://code.google.com/p/bghudappkit/ Doe anyone have experience with either one or have a preference? M

Re: HUD-Style buttons

2009-04-09 Thread I. Savant
On Thu, Apr 9, 2009 at 1:50 PM, Mike Glass wrote: > I use BWToolkit in practically every desktop app I work on, and it's > fantastic. I can't recommend it enough. I can vouch for BWToolkit as well. Though I haven't updated it in awhile, the last version I played with did still have a few odd be

Change view on resize

2009-04-09 Thread Walker Argendeli
In Calculator.app, hitting the resize button lets you switch between three types of calculators. What technique could I use to implement something like this in my app? Note that I don't want the user to be able to resize the window by dragging the bottom-right corner. I know I need to us

Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...

2009-04-09 Thread Greg Guerin
david paeme wrote: This might be more interesting... looks like the thing some crash down in the bowels of LocaleGetValue? Locale information is often taken from environment variables. Print the environment, compare it to when it doesn't crash, and check any differences. Next, try runni

Re: Floating window on top of everything

2009-04-09 Thread Matt Neuburg
On Thu, 9 Apr 2009 17:31:52 +0100, Benjamin Dobson said: > >On 9 Apr 2009, at 16:49:48, Matt Neuburg wrote: > >> On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" > >: >> >>> On 08 Apr 09, at 08:03, Matt Neuburg wrote: On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli said:

[MEET] LA CocoaHeads TONIGHT 4/9 7:30pm

2009-04-09 Thread Rob Ross
Greetings LA CocoaHeads. Tonight Ken Bowlus will be demoing his iPhone app and discussing how to set up an iPhone project, a high-level view of the iPhone API, and a walk through of the source code for his app. We meet at the offices of E! Entertainment at 7:30pm. Our meeting location is 5750

[MEET] BYU CocoaHeads TONIGHT 9 April 7:00pm

2009-04-09 Thread Dave DeLong
Hi everyone! BYU CocoaHeads will be having their monthly meeting tonight at 7pm in room 184 of the Tanner Building on BYU campus in Provo, UT. All are invited to attend. Cory Kilger will be presenting on Localization, and Mark Suman will be demoing an iTunes-integrated app he's developed

Request for good advise to programmatically locate iMovie 09

2009-04-09 Thread Huibert Aalbers
Hi everyone, I am writing an app that requires to know if and where iMovie 09 is installed, since it needs to read a file located in its application bundle. I know I could ask the user to locate the app, but I would like to avoid it if possible, or use this strategy as a last resort. Any

Re: Request for good advise to programmatically locate iMovie 09

2009-04-09 Thread Nick Zitzmann
On Apr 9, 2009, at 2:22 PM, Huibert Aalbers wrote: I am writing an app that requires to know if and where iMovie 09 is installed, since it needs to read a file located in its application bundle. I know I could ask the user to locate the app, but I would like to avoid it if possible, or use

Reversing OS X Menu Bar and Menus for True RTL Language Applications

2009-04-09 Thread Dalmazio Brisinda
Hello all, I was wondering if anyone is aware of any work related to reversing the OS X menu bar and menus for true right-to-left language applications? By true RTL I mean coupling language localization with actually flipping the entire menu bar so that the Apple Menu and menu items app

Re: Floating window on top of everything

2009-04-09 Thread Benjamin Dobson
On 9 Apr 2009, at 20:02:34, Matt Neuburg wrote: Oh, I thought "floats above another application" meant "floats above another *particular* application". After all, if that isn't what's meant, then why didn't he start by asking for a HUD window that just floats above all applications always?

Re: Send click to window

2009-04-09 Thread Nate Weaver
There are actually 2 NSEvent methods that aren't in my local docs here at work, but are in the headers and on developer.apple.com: + (NSEvent *)eventWithCGEvent:(CGEventRef)cgEvent; - (CGEventRef)CGEvent; 10.5-only, though. On Apr 9, 2009, at 6:24 AM, Dave Keck wrote: Is it possible to send

Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...

2009-04-09 Thread david paeme
I guess I solved the problem: I started thinking about why a locale would ever be needed - and all i could think of were strings and formatting. So I started fooling around with those... and the problem went away by using the userDefault differently: using a number (and %d) instead of a str

Re: Change view on resize

2009-04-09 Thread Dave Keck
> How do I enable the resize button without enabling drag-resize? > - Do I use windowWillResize:toSize: to be notified?  How am I notified of > the user clicking clicking the button? To satisfy both these requirements, I would first disable window resizing for your window in IB. Then, somewhere in

Re: Send click to window

2009-04-09 Thread Dave Keck
> There are actually 2 NSEvent methods that aren't in my local docs here at > work, but are in the headers and on developer.apple.com: > > + (NSEvent *)eventWithCGEvent:(CGEventRef)cgEvent; > - (CGEventRef)CGEvent; Woops :) That could be why I wasn't able to send click events to other apps' window

Re: Setting Min, MAx and range of characters for NSTextField

2009-04-09 Thread Preston Jackson
I have the same issue. I'm binding my NSTextField value to my model and using key-value validation to ensure the value is the right length. If the user enters a value that it too short, the coerced value will make it into my model, but the NSTextField keeps the pre- validate value. Anyone

Re: Request for good advise to programmatically locate iMovie 09

2009-04-09 Thread Sean McBride
On 4/9/09 2:25 PM, Nick Zitzmann said: >> I am writing an app that requires to know if and where iMovie 09 is >> installed, since it needs to read a file located in its application >> bundle. I know I could ask the user to locate the app, but I would >> like to avoid it if possible, or use this st

static method to create CABasicAnimation: does this create a memory leak?

2009-04-09 Thread Miles
I have created a static method creating and returning an animation that I use in various places in my application. I think this may be causing a leak. If I autorelease theAnimation in the return statement I get a crash because I the animation must be being release before it's complete. Is this inde

Re: Send click to window

2009-04-09 Thread Dave Keck
I finally got clicks forwarding to another process. I made an example project, available here: http://www.docdave.com/clicktest.zip NOTE: You have to setup the project first - in the Globals.h file, define 'PID' to the process that you want clicks to be forwarded to, and 'WID' to the window ID of

Re: static method to create CABasicAnimation: does this create a memory leak?

2009-04-09 Thread Randall Meadows
On Apr 9, 2009, at 6:00 PM, Miles wrote: I have created a static method creating and returning an animation that I use in various places in my application. I think this may be causing a leak. If I autorelease theAnimation in the return statement I get a crash because I the animation must b

Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...

2009-04-09 Thread Greg Guerin
david paeme wrote: instead of a string (%@) the %@ is the code for the -description of an object. Strictly speaking, that isn't merely a string, but the result of sending a message. UInt lastupdate = [userDefaults integerForKey:@"lastDBUpdate"]; NSString *urlString = [NSString stringWi

Re: Sqlite3

2009-04-09 Thread Hank Heijink (Mailinglists)
On Apr 8, 2009, at 8:24 AM, fawad shafi wrote: i m working on sqlite3 database, problem is this that, when i insert data in database from simulator, n after this when i go to sqlite3 terminal. the data is not available there. more strange is that after inserting data from simulator, when i

Re: OO idiom avoiding switch and if

2009-04-09 Thread Sherm Pendley
On Thu, Apr 9, 2009 at 9:45 PM, Jeffrey Oleander wrote: > > There's a programming idiom to avoid using complex if statements and > switch/case statements, and instead to just send a message to a different > class of object. > > I'm doing some parsing of an old text data format which > has a hiera

OO idiom avoiding switch and if

2009-04-09 Thread Jeffrey Oleander
There's a programming idiom to avoid using complex if statements and switch/case statements, and instead to just send a message to a different class of object. I'm doing some parsing of an old text data format which has a hierarchy with a record and then sub-records and sub-sub records, 1 per "

Re: Request for good advise to programmatically locate iMovie 09

2009-04-09 Thread Huibert Aalbers
Thank you very much to both of you. Works like a charm. Regards, Huibert On 09/04/2009, at 06:16 p.m., Sean McBride wrote: On 4/9/09 2:25 PM, Nick Zitzmann said: I am writing an app that requires to know if and where iMovie 09 is installed, since it needs to read a file located in its appl

Re: Change view on resize

2009-04-09 Thread Kyle Sluder
On Thu, Apr 9, 2009 at 6:52 PM, Dave Keck wrote: > To satisfy both these requirements, I would first disable window > resizing for your window in IB. Then, somewhere in your app's > initialization code, do a little something like this: Calculator.app apparently does the opposite, from looking at

Re: OO idiom avoiding switch and if

2009-04-09 Thread Michael Ash
On Thu, Apr 9, 2009 at 11:20 PM, Sherm Pendley wrote: > On Thu, Apr 9, 2009 at 9:45 PM, Jeffrey Oleander wrote: > >> >> There's a programming idiom to avoid using complex if statements and >> switch/case statements, and instead to just send a message to a different >> class of object. >> >> I'm d

Re: Setting Min, MAx and range of characters for NSTextField

2009-04-09 Thread Kyle Sluder
On Thu, Apr 9, 2009 at 7:02 PM, Preston Jackson wrote: > Anyone have any ideas on this? First, you typically don't bind views directly to the model. You instead bind them through a controller. I did a quick test, however, in which I did bind an NSTextField straight to my model. I created a sim

Undocumented flags in LSCopyItemInfoForRef

2009-04-09 Thread Gerriet M. Denkmann
LSItemInfoFlags, returned by LSCopyItemInfoForRef() when the queried item is an application, contains several undocumented flags (i.e. flags which are NOT documented in LSInfo.h nor in the Launch Services Reference). E.g. iTunes.app has (among well documented flags) also: 0x6804000. Wher

Re: OO idiom avoiding switch and if

2009-04-09 Thread Greg Guerin
Jeffrey Oleander wrote: Advice on what's least messy overall or pointers to sources of info would be appreciated. http://en.wikipedia.org/wiki/Finite_state_machine http://en.wikipedia.org/wiki/Reflection_(computer_science) "Convert a string matching the symbolic name of a class or function