Puzzlements

In the words of the King of Siam: Iz a Puzzlement

On this page I will list the items that I am currently investigating. I am not working on all of them to the same degree, or all of the time – I have only so much time to give to programming – but they are my current priorities.

If you have the solution – or links to resources – to any of these items, I would really welcome the input. I have absolutely no joy in ‘finding things out for myself’ – I just want code that works.

The frustrating thing is that a) all of these things should be fairly easy to do, and b) it is damn hard to find good documentation for them. I have looked. And it’s no use reccommending Apple’s guidelines – while they are very thorough, they assume that you already understand what you are looking for, which I do not. I do not need to trawl through 57 methods that windows respond to when I’m looking for ‘code that will open window’.

  1. Saving the contents of an NSTextView with Core Data
    (I can display and set an attribute in a NSTextField, and I suspect this might need a value transformer, but I have no working code.)

    Solved: snippets/nstextview-and-core-data. So simple it warrants a rant of its own.
  2. Using dropdown menus to select the a record from a Core Data model
    This would be such a handy feature. Sigh.
  3. Display an image associated with the filepath when the filepath is part of a CoreData model
  4. I can display an image from a filepath in an ordinary model. I can’t, somehow, do the same when I try to link the image to the same NSString inside a CoreData model
  5. Set/Read CoreData values programatically
    I can set them via bindings from the interface, but as far as I can make out, nobody has properly documented the code for manipulating CoreData values in code. This one is driving me particularly bonkers. Every single example I can find is leaving out vital steps.

And a couple of things I want to find out but which are more ‘interest’ than ‘I’ve tried this five ways before breakfast, and there’s no easy solution.’

  • When to use token fields and what they are good for.
    I keep seeing token fields in IB, but I have no idea how to set them up, what they’re good for, and why you would use one. I’ve never looked into this.
  • How Document-based applications work
    How do you link a document’s content to that document? I’ve never yet looked at this

Err, yes. The chances that I’ll be bored are pretty slim.
And for the sake of my sanity, it might be a good idea to limit this list to half a dozen (five?) items – I need to solve one before adding another, otherwise this could *really* get out of hand.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>