Hi list,
I'm migrating some apps to 7.7.1 and I want to load new resources in an AlphaBlendedIcons subclass to try some spinners. I haven't been able to find documentation about loading new images. I've tried with senders of #importMaskedImage: or references to the subclasses that aren't just accessors with no luck. I've also tried doing something like: MyClass>>myIcon <file: './Spinners/SpinnerTest_0.png'> but evaluating MyClass myIcon returns the class itself. I've seen in the class comment that it mentions the integration of assets, but I don't know how to do that integration. Could someone give me a hint? Any pointers will be much appreciated! -- Thanks in advance, Andrés _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I don't have time for a more detailed response right now, but if you load Assets-IDE that should help you out.
Randy On Tue, Dec 7, 2010 at 11:53 AM, andres <[hidden email]> wrote: Hi list, -- Randy Coulman [hidden email] _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Andres Fortier-2
You need to load the Assets-IDE parcel. This will give you a menu item
in the browser to load png files from disk, and automatically import them as methods in your subclass. Works like a charm, but I think this parcel should be loaded by default. Op 7 Dec 2010 om 21:06 heeft andres <[hidden email]> het volgende geschreven: > Hi list, > I'm migrating some apps to 7.7.1 and I want to load new > resources in an AlphaBlendedIcons subclass to try some spinners. I > haven't been able to find documentation about loading new images. I've > tried with senders of #importMaskedImage: or references to the > subclasses that aren't just accessors with no luck. I've also tried > doing something like: > > MyClass>>myIcon > <file: './Spinners/SpinnerTest_0.png'> > > but evaluating MyClass myIcon returns the class itself. I've seen in the > class comment that it mentions the integration of assets, but I don't > know how to do that integration. Could someone give me a hint? > > Any pointers will be much appreciated! > > -- > Thanks in advance, > Andrés > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Thanks Randy and Rob, I'll check it out!
Rob Vens escribió: > You need to load the Assets-IDE parcel. This will give you a menu item > in the browser to load png files from disk, and automatically import > them as methods in your subclass. Works like a charm, but I think > this parcel should be loaded by default. > > Op 7 Dec 2010 om 21:06 heeft andres <[hidden email]> > het volgende geschreven: > >> Hi list, >> I'm migrating some apps to 7.7.1 and I want to load new >> resources in an AlphaBlendedIcons subclass to try some spinners. I >> haven't been able to find documentation about loading new images. I've >> tried with senders of #importMaskedImage: or references to the >> subclasses that aren't just accessors with no luck. I've also tried >> doing something like: >> >> MyClass>>myIcon >> <file: './Spinners/SpinnerTest_0.png'> >> >> but evaluating MyClass myIcon returns the class itself. I've seen in the >> class comment that it mentions the integration of assets, but I don't >> know how to do that integration. Could someone give me a hint? >> >> Any pointers will be much appreciated! >> >> -- >> Thanks in advance, >> Andrés >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
On Dec 7, 2010, at 12:50 PM, andres wrote: > Thanks Randy and Rob, I'll check it out! Make yours Assets class a subclass of AlphaBlendedIcons (or copy its import behavior to your own Assets). Otherwise, default import of pngs is flat Image objects. -- Travis Griggs [hidden email] "The dissenter is every human being at those moments of his life when he resigns momentarily from the herd and thinks for himself." - Archibald MacLeish, poet and librarian _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Thanks to all, it worked like a charm.
Travis Griggs escribió: > On Dec 7, 2010, at 12:50 PM, andres wrote: > >> Thanks Randy and Rob, I'll check it out! > > Make yours Assets class a subclass of AlphaBlendedIcons (or copy its > import behavior to your own Assets). Otherwise, default import of pngs > is flat Image objects. > > -- > Travis Griggs > [hidden email] > "The dissenter is every human being at those moments of his life when > he resigns momentarily from the herd and thinks for himself." - > Archibald MacLeish, poet and librarian > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |