Re: Flyweight

2013-02-18 Thread Ronald Oussoren
On 18 Feb, 2013, at 10:59, Christ Levesque wrote: > 1- Reduce storage requirements 2- Stand-Ins for other objects > > How to implement it? Write some code? Your questions are too vague to give sane answers, and also give the impression that you are using the list as a homework anwering servi

Re: How to recognize mutability?

2013-02-20 Thread Ronald Oussoren
On 20 Feb, 2013, at 9:10, Gerriet M. Denkmann wrote: > I am trying to build my own version of NSKeyed(Un)Archiver. > > But I do not know how to recognise mutability. Use "classForKeyedArchiver" (or one of the other variants) to detect as which class an object wants to be archived. This will

Re: Write Finder plugin

2012-07-16 Thread Ronald Oussoren
On 13 Jul, 2012, at 18:11, Mark Munz wrote: > But the OP *could* create a Workflow OS X Services Item that has a Run > Shell Script action with a python script. Or use PyObjC. Ronald > > On Thu, Jul 12, 2012 at 11:16 PM, Eric Schlegel wrote: >> >> On Jul 12, 2012, at 10:45 PM, Rakesh Singha

Re: NSDictionary from .plist file in Bundle

2008-05-21 Thread Ronald Oussoren
from Foundation import NSBundle print NSBundle.mainBundle().infoDictionary() Ronald On Wednesday, May 21, 2008, at 01:42PM, "Allan Greenier" <[EMAIL PROTECTED]> wrote: >I have a vague memory that I can swoop up my own .plist in my main >bundle into an NSDictionary with one call, but I can't

Re: NSDictionary from .plist file in Bundle

2008-05-21 Thread Ronald Oussoren
file, and NSBundle has methods for getting the path to use. Or: print NSDictionary.dictionaryWithContentsOfFile_(NSBundle.mainBundle().pathForResource_ofType_("mydata", "plist")) Ronald > > >On May 21, 2008, at 9:01 AM, Ronald Oussoren wrote: > >> >>

Re: Returning values from objc_msgSend etc

2008-03-03 Thread Ronald Oussoren
On Monday, March 03, 2008, at 11:53AM, "Duncan McGregor" <[EMAIL PROTECTED]> wrote: >> I can simply check the calculated size after calling ffi_prep_cif(), and >> compare that to sizeof(void*) to see if the return value will fit in a >> register. > >Is that right? 8 byte structs are returned