• 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: OK, but what do 'attributes' look like?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OK, but what do 'attributes' look like?


  • Subject: Re: OK, but what do 'attributes' look like?
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 9 Mar 2004 14:17:02 -0500

On Mar 9, 2004, at 1:47 AM, Denis Stanton wrote:

"You can assign any attribute name/value pair you wish ". This doesn't make sense to me. Surely for the text to appear in a certain font I have to identify that font using a name that the compiler will recognise. Making up my own key value pair will not communicate anything useful.

It allows for flexibility -- suppose you wanted to mark up text with special attributes for class names. Apple hasn't provided an attribute for that, but you can create, and assign, your own...

Being allowed to make up my one language would be great - if I only wanted to talk to myself. It surprised me here, because I actually want to communicate something to the compiler, and it seems only logical that I should use a terms that it will recognise. I understand that the flexibility is providing for more complex needs, where I might be handing the output myself.


not all the attributes that you'll assign to a range of text have to be displayed by the text system..

there are other situations. For example, you might keep your own data attached to that that you can detect when you're using a selection containing that information (I've done something similar, in that text was attached to ranges of text in the selection as additional information.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: OK, but what do 'attributes' look like? (From: Denis Stanton <email@hidden>)

  • Prev by Date: Re: modal windows (again)
  • Next by Date: Re: OK, but what do 'attributes' look like?
  • Previous by thread: Re: OK, but what do 'attributes' look like?
  • Next by thread: Re: OK, but what do 'attributes' look like?
  • Index(es):
    • Date
    • Thread