• 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: XML generation details (was Re: ASObjC alloc and object creation)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML generation details (was Re: ASObjC alloc and object creation)


  • Subject: Re: XML generation details (was Re: ASObjC alloc and object creation)
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Tue, 30 Jan 2018 15:04:15 +0900


> On Jan 30, 2018, at 11:57, Shane Stanley <email@hidden> wrote:
>
> On 30 Jan 2018, at 12:25 pm, Jean-Christophe Helary
> <email@hidden> wrote:
>>
>> Theoretical question: 1 + 5 = 2 + 4 so how does the system know I want
>> options 1 and 5 instead of options 2 and 4 ? Or maybe I'm not talking about
>> the same thing ?
>
> Mostly there won't be an option equal to 5. If each option sets one bit, the
> options will be 0, 1, 2, 4, 8, 16... If there is a value equal to 5, it will
> be shorthand for 4 + 1, which means it shouldn't be used with 1.

Ok, that makes sense.

>> Question: is there a *really* good book on Cocoa that would help
>> understanding all that with ASObjC in mind?
>
> Not that I know of. Last I looked, the book market was very iOS focussed.

Sorry, I did not mean a book that mentioned ASObjC, but rather a book where
*my* ASObjC interest could be fed by an intelligent description of Foundation
and other frameworks.

> We've both missed an important point: you're not writing a string, you're
> writing raw data. That error is telling us that your data doesn't understand
> that method, and that's because it's for writing strings to file, not data.
> You want:
>
> theData's writeToFile:thePath options:(current application's
> NSDataWritingAtomic) |error|:(missing value)

Ok, thank you very much.


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: XML generation details (was Re: ASObjC alloc and object creation)
      • From: Shane Stanley <email@hidden>
References: 
 >ASObjC alloc and object creation (From: Jean-Christophe Helary <email@hidden>)
 >Re: ASObjC alloc and object creation (From: Shane Stanley <email@hidden>)
 >Re: ASObjC alloc and object creation (From: Jean-Christophe Helary <email@hidden>)
 >Re: ASObjC alloc and object creation (From: Jean-Christophe Helary <email@hidden>)
 >Re: ASObjC alloc and object creation (From: Shane Stanley <email@hidden>)
 >Re: ASObjC alloc and object creation (From: Jean-Christophe Helary <email@hidden>)
 >XML generation details (was Re: ASObjC alloc and object creation) (From: Jean-Christophe Helary <email@hidden>)
 >Re: XML generation details (was Re: ASObjC alloc and object creation) (From: Jean-Christophe Helary <email@hidden>)
 >Re: XML generation details (was Re: ASObjC alloc and object creation) (From: Jean-Christophe Helary <email@hidden>)
 >Re: XML generation details (was Re: ASObjC alloc and object creation) (From: Shane Stanley <email@hidden>)
 >Re: XML generation details (was Re: ASObjC alloc and object creation) (From: Jean-Christophe Helary <email@hidden>)
 >Re: XML generation details (was Re: ASObjC alloc and object creation) (From: Shane Stanley <email@hidden>)
 >Re: XML generation details (was Re: ASObjC alloc and object creation) (From: Jean-Christophe Helary <email@hidden>)
 >Re: XML generation details (was Re: ASObjC alloc and object creation) (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: XML generation details (was Re: ASObjC alloc and object creation)
  • Next by Date: Re: XML generation details (was Re: ASObjC alloc and object creation)
  • Previous by thread: Re: XML generation details (was Re: ASObjC alloc and object creation)
  • Next by thread: Re: XML generation details (was Re: ASObjC alloc and object creation)
  • Index(es):
    • Date
    • Thread