• 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: Bind to string (path), convert to NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bind to string (path), convert to NSImage


  • Subject: Re: Bind to string (path), convert to NSImage
  • From: Trygve Inda <email@hidden>
  • Date: Mon, 15 Feb 2010 17:38:47 +0000
  • Thread-topic: Bind to string (path), convert to NSImage

> You can bind an NSString path of an image, to an NSImageView. Look up
> "NSImageView bindings" in the documentation.
>
> Also it seems like bad practice to have the at-symbol inside your
> NSDictionary key strings. For example make sure you use @"iconpath" instead
> of @"@iconpath" because that at-symbol could eventually conflict with
> Apple's own collection operators.
>
> -Steven
>
> 2010/2/15 Trygve Inda <email@hidden>
>
>> I have an NSImageWell (or NSView). I am using an NSCollectionView and have
>> it bound to an ArrayController which is bound to an array of NSDictionary.
>>
>> The dicts have several keys, among them @name and @iconpath
>>
>> @iconpath is a NSSting that contains a path to an NSImage.
>>
>> How can I bind though my NSArrayController, but have code that converts my
>> path to an NSImage to return to the view inside NSCollectionView
>>
>> Obviously I know how to derive the NSImage from the path, but since the
>> NSImage in not in the array of dicts, how can I bind it?
>>
>> I basically need the system to call a method I write to take a path and
>> return an NSImage.

Actually the @ is not in my names - not sure why I wrote it out like that.

Thank you.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Bind to string (path), convert to NSImage (From: Steven Degutis <email@hidden>)

  • Prev by Date: Re: GeekGameBoard (was: Re: Touch-and-drag architecture question)
  • Next by Date: Re: IKImageBrowserView & IKImageView subclasses not getting called
  • Previous by thread: Re: Bind to string (path), convert to NSImage
  • Next by thread: Debugger: Cannot access memory at address 0x00
  • Index(es):
    • Date
    • Thread