Title Field - Inspector

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Title Field - Inspector

Post by bjb007 » Sat Jul 19, 2008 4:03 pm

When an entry is made in the "Name"
field in the Inspector could it be copied
into the "Title" field automatially"?
Life is just a bowl of cherries.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Jul 19, 2008 4:59 pm

Hi,

If you want to make this a real feature request, you have to enter it in QCC, not there.

Really, I wouldn't like this feature. First of all, it would make it too tempting to change the name of a stack and have its title changed too, whereas what you really want it just to change its title.

It is bad to change the name of a stack, especially if this stack is part of a larger project. Too often, people change the name of a stack and don't understand why their project breaks apart completely.

Really, it is important that name and title are considered to completely separared properties of a stack.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Sun Jul 20, 2008 8:53 am

I'm with Mark on this one. It may be handy for some, but the stack's name and title properties are separate for a reason.

For my own work., I tend to use the name as a sort of ID, usually something short with mnemonic value within the project (e.g., "hrIDX" for my "HyperRESEARCH Index" window).

The title, on the other hand, is just for display to the user so it can be anything at all that makes sense to them.

And with documents, I tend to use the window's title to show the document file name, but use the stack name as a unique identifier for the stack (since it's possible to have two documents open with the same name from different folders, but not two stacks with the same name).

You could quite easily make a Rev plugin to handle this for you if you like, providing one entry field which sets both properties.

But I suspect that as you work with Rev more, you'll eventually come across circumstances where using the title and name properties for different purposes will come in handy.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply