rarely p--)

2010-11-25 Thread Ignacio Enriquez
Hi, a very good business company, I suggest you go to see:
mobiles3gs.com, and now all of products enjoy great discount, saving
time and money. 6--)
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Enumerating folders/files in dmg without mounting it & selective file extraction

2010-11-25 Thread Sachin Porwal
Hi,

In my application, I am browsing to an user selected dmg file, mount
it (using 'hdiutil attach') , validate it for required custom folder
structure (enumerating the folder structure) & file data, unmount it
(using 'hdiutil detach') and return the results back. The process
takes a bit time to mount/unmount dmg files.

I am looking to reduce the time required. Is there a way out to
enumerate the dmg folder structure without mounting it & options to
selectively extract a single file from dmg (something analogus to zip
files)? will it improve the performance?

Please suggest.

Thanks,
Sachin
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Objective-C Mind Map Libraries

2010-11-25 Thread Andrew McLaughlin
Thanks Gary...

I'll take that as a "no". The top links when searching for Objective-c open 
source gave me zilch. Searching for Gary's suggestion of cocoa open source, 
wasn't much better. Top link there was essentially a GeoCities page with 
uncataloged links to apps and frameworks. Far short of SourceForge/FreshMeat.

http://www.cocoadev.com/index.pl?CocoaOpen

Andrew

On Nov 25, 2010, at 1:16 PM, Gary L. Wade wrote:

> The silence you're hearing is due to people being tired of posting the same
> comment to another person who hasn't learned how to use a search engine with
> the words "cocoa open source".
> 
> On 11/25/2010 12:33 PM, "Andrew McLaughlin"  wrote:
> 
>> So I guess there's none? :)
>> 
>> Andrew
>> 
>> 
>> On Nov 22, 2010, at 9:55 PM, Andrew McLaughlin wrote:
>> 
>>> Hi guys (and gals),
>>> 
>>> I'm new to the Objective-C arena and am still getting my bearings. Besides
>>> the amazing set of libraries that Apple provides in the SDK, is there an 
>>> open
>>> source repository elsewhere of Objective-C libraries that can be used in
>>> development? Specifically, I'm looking for a SourceForge or FreshMeat type 
>>> of
>>> site that is searchable.
>>> 
>>> I have an app idea that will span, iPhone, iPod Touch, iPad and the Mac OS X
>>> Desktop that I would like to development. The main UI for this app will be a
>>> Mind Map structure. Nothing quite as crazy/fancy as what Tony Buzan and 
>>> those
>>> folks are doing. Each node of the diagram will need to be clickable, 
>>> editable
>>> and provide for some gestures (under Mac OS X Lion). I'd hate to roll my own
>>> if there is something already available.
>>> 
>>> Thanks,
>>> Andrew
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/pik0%40me.com
> 
> This email sent to p...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Objective-C Mind Map Libraries

2010-11-25 Thread Andrew McLaughlin
A socialist once theorized about members of a social group, especially a 
faceless one, like cocoa-dev. He postulated the various stages that each member 
goes through eventually ending up in an angry and disgruntled state, completely 
forgetting their own beginnings. Darned if I can't find that either...

Andrew


On Nov 25, 2010, at 4:49 PM, k...@highrolls.net wrote:

> Sometimes the harshness of the list belies the spirit of Apple.
> 
> -koko
> 
> On Nov 25, 2010, at 5:36 PM, Laurent Daudelin wrote:
> 
>>> The silence you're hearing is due to people being tired of posting the same
>>> comment to another person who hasn't learned how to use a search engine with
>>> the words "cocoa open source".
>> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/pik0%40me.com
> 
> This email sent to p...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: how to redraw a view

2010-11-25 Thread Andy Lee
On Nov 24, 2010, at 12:50 PM, Artemiy Pavlov wrote:
> I tried [self setNeedsDisplay] or [MyView setNeedsDisplay] but this doesn't 
> work.

Try [self setNeedsDisplay:YES].

--Andy


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


how to redraw a view

2010-11-25 Thread Artemiy Pavlov

Hi all!

I have a view whose drawRect method draws a plot according to a few  
parameters which are global variables. When I change these variables  
according to the user input, I want to update that plot, so I need the  
drawRect method of my view to be called. I tried [self  
setNeedsDisplay] or [MyView setNeedsDisplay] but this doesn't work.


So my question is, what is the correct way to ask my view to be redrawn?


Thanks and best wishes,

Artemiy.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Problem with plugin architecture development and subclass into bundles

2010-11-25 Thread Daniele Margutti
Hello List,
I need to make a plug-in based application.
The most common way is to define a protocol that each plugin (bundle)
principal class must follow.
However for some reasons I need to use subclasses instead of protocol.

So I've a PluginLoader class and a BasePluginClass. This class is the
superclass of each plugin's principal class. It contains some methods
and bla bla.
This is my environment:
http://i.imgur.com/PLJgm.png

The main problem is at runtime when I get this error:
Class MKAbstractUITool is implemented in both
/Users/malcom/Desktop/MyApp/build/Debug/MyApp.app/Contents/MacOS/MyApp
and 
/Users/malcom/Desktop/MyApp/build/Debug/MyApp.app/Contents/PlugIns/UITools/iOS/MKiOSTabBar.MyApptool/Contents/MacOS/MKiOSTabBar.
One of the two will be used. Which one is undefined.

This because I've imported my BasePluginClass (named MKAbstractUITool)
both in main app and my plugin.
That's not only a warning but a problem because when I try to load a
(valid) plugin this check fail

if ([prinClass isSubclassOfClass:[MKAbstractUITool class]] == NO)

and return NO.
(and my prinClass is a subclass of that).
I've also tried to use @class MKAbstractUITool but it return error
linking (cannot found MKAbstractUITool...).
It's the same using HEADER_SEARCH_PATH instead of importing .h and .m
of MKAbstractUITool into my bundle project.
And it's the same importing only the .h.

Any idea?
Thanks
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


NSFileHandleDataAvailableNotification doesn't clear the [[notification userInfo] objectForKey:NSFileHandleNotificationDataItem]

2010-11-25 Thread Wolf Stephan Kappesser
Hello,

I am trying to connect a chess engine (via UCI) to my obj-c program. 
For this, I use the async NSFileHandleDataAvailableNotification to read the 
datas into a string and parse them. 
The problem is that the NSTask which starts the chess engine uses some old 
datas which seems to be in a buffer, I can't clear. The effect is that the 
engine answer to input which is depreciated. I can't determine this behavior.

There are someone how knows, were I can get help, or have a solution directly. 
If need I can send you code snips and log files.

Best regards
Wolf S. K.___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Objective-C Mind Map Libraries

2010-11-25 Thread koko

Sometimes the harshness of the list belies the spirit of Apple.

-koko

On Nov 25, 2010, at 5:36 PM, Laurent Daudelin wrote:

The silence you're hearing is due to people being tired of posting  
the same
comment to another person who hasn't learned how to use a search  
engine with

the words "cocoa open source".




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Objective-C Mind Map Libraries

2010-11-25 Thread Laurent Daudelin
Probably true Gary but don't forget it's Thanksgiving day here in the US and 
most people do not work and are probably away from a computer...

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 
http://www.nemesys-soft.com/
Logiciels Nemesys Software  
laur...@nemesys-soft.com

On Nov 25, 2010, at 13:16, Gary L. Wade wrote:

> The silence you're hearing is due to people being tired of posting the same
> comment to another person who hasn't learned how to use a search engine with
> the words "cocoa open source".
> 
> On 11/25/2010 12:33 PM, "Andrew McLaughlin"  wrote:
> 
>> So I guess there's none? :)
>> 
>> Andrew
>> 
>> 
>> On Nov 22, 2010, at 9:55 PM, Andrew McLaughlin wrote:
>> 
>>> Hi guys (and gals),
>>> 
>>> I'm new to the Objective-C arena and am still getting my bearings. Besides
>>> the amazing set of libraries that Apple provides in the SDK, is there an 
>>> open
>>> source repository elsewhere of Objective-C libraries that can be used in
>>> development? Specifically, I'm looking for a SourceForge or FreshMeat type 
>>> of
>>> site that is searchable.
>>> 
>>> I have an app idea that will span, iPhone, iPod Touch, iPad and the Mac OS X
>>> Desktop that I would like to development. The main UI for this app will be a
>>> Mind Map structure. Nothing quite as crazy/fancy as what Tony Buzan and 
>>> those
>>> folks are doing. Each node of the diagram will need to be clickable, 
>>> editable
>>> and provide for some gestures (under Mac OS X Lion). I'd hate to roll my own
>>> if there is something already available.
>>> 
>>> Thanks,
>>> Andrew

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: unit test exit's abnormally with code 5

2010-11-25 Thread Bertrand Landry-Hetu
I had something similar the other day: the release configuration
worked but the debug configuration would get that same NSTask error
22.

I did a test app that would load the unit test bundle to get more
details on the failure. I got a "malformed rebase opcodes (331/664)"
error, which seems to come from the Mach-O image loader.

I ran out of time so on a hunch I switched the compiler from LLVM 1.6
to LLVM-GCC 4.2 and now it works fine, so you might want to give this
a try. My unit tests were working fine before I updated to the latest
iOS SDK so I'm guessing this is a new bug in LLVM.

On Tue, Nov 23, 2010 at 9:25 PM, Shane
 wrote:
> Shameless bump ... any ideas?
>
> On Mon, Nov 22, 2010 at 9:41 AM, Shane
>  wrote:
>> Still trying to get my unit tests to build. I have an app project
>> which includes unit tests as well, and it depends on another dylib
>> project. They're all built with GCC_ENABLE_OBJC_GC as unsupported.
>> AFAIK, that's off. So everything ought to be turned of with respect to
>> GC. And according to the output below … seems my OBJC_DISABLE_GC is
>> set. I have a Run Script in the Run Script build phase that looks like
>> this …
>>
>> ---
>> OBJC_DISABLE_GC=YES
>> export OBJC_DISABLE_GC
>> # Run the unit tests in this test bundle.
>> "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
>> ---
>>
>> But when I build my unit test, I am not seeing the environment
>> variable listed in the output of the "Run custom shell script 'Run
>> Script'" output. So it doesn't seem to be seen during a build.
>>
>> Anyone have thoughts?
>>
>> Here's the output when trying to build unit tests if this helps ...
>> ---
>> PhaseScriptExecution "Run Script"
>> /Users/napolitano/Projects/test/shared_builds/test.build/Release/UnitTests.build/Script-9D233EDB128F30B900CE8F0D.sh
>> cd /Users/napolitano/Projects/test/demo
>> setenv ACTION build
>> setenv ALTERNATE_GROUP staff
>> setenv ALTERNATE_MODE u+w,go-w,a+rX
>> setenv ALTERNATE_OWNER napolitano
>> setenv ALWAYS_SEARCH_USER_PATHS YES
>> setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
>> setenv APPLE_INTERNAL_DIR /AppleInternal
>> setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
>> setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
>> setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
>> setenv APPLY_RULES_IN_COPY_FILES NO
>> setenv ARCHS "x86_64 i386 ppc"
>>
>> … (truncated this output, just env vars w/ no mention of
>> OBJC_DISABLE_GC env var)
>>
>> /Developer/Tools/RunPlatformUnitTests.include:419: note: Running tests
>> for architecture 'x86_64' (GC OFF)
>> objc[11391]: GC: forcing GC OFF because OBJC_DISABLE_GC is set
>> 2010-11-20 21:05:57.978 otest-x86_64[11391:903] The test bundle at
>> /Users/napolitano/Projects/test/demo/build/Release/UnitTests.octest
>> could not be loaded because its Objective-C runtime information does
>> not match the runtime information required by the test rig.  This is
>> likely because the test rig is being run with Objective-C garbage
>> collection disabled, but the test bundle requires Objective-C garbage
>> collection.  To enable Objective-C garbage collection for the test
>> rig, run it in an environment without the OBJC_DISABLE_GC environment
>> variable.
>> 2010-11-20 21:05:57.987 otest-x86_64[11392:203] *** NSTask: Task
>> create for path
>> '/Users/napolitano/Projects/test/demo/build/Release/UnitTests.octest/Contents/MacOS/UnitTests'
>> failed: 22, "Invalid argument".  Terminating temporary process.
>> /Developer/Tools/RunPlatformUnitTests.include:451: error: Test rig
>> '/Developer/Tools/otest' exited abnormally with code 5 (it may have
>> crashed).
>>
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/bertrandl%40gmail.com
>
> This email sent to bertra...@gmail.com
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Objective-C Mind Map Libraries

2010-11-25 Thread Gary L. Wade
The silence you're hearing is due to people being tired of posting the same
comment to another person who hasn't learned how to use a search engine with
the words "cocoa open source".

On 11/25/2010 12:33 PM, "Andrew McLaughlin"  wrote:

> So I guess there's none? :)
> 
> Andrew
> 
> 
> On Nov 22, 2010, at 9:55 PM, Andrew McLaughlin wrote:
> 
>> Hi guys (and gals),
>> 
>> I'm new to the Objective-C arena and am still getting my bearings. Besides
>> the amazing set of libraries that Apple provides in the SDK, is there an open
>> source repository elsewhere of Objective-C libraries that can be used in
>> development? Specifically, I'm looking for a SourceForge or FreshMeat type of
>> site that is searchable.
>> 
>> I have an app idea that will span, iPhone, iPod Touch, iPad and the Mac OS X
>> Desktop that I would like to development. The main UI for this app will be a
>> Mind Map structure. Nothing quite as crazy/fancy as what Tony Buzan and those
>> folks are doing. Each node of the diagram will need to be clickable, editable
>> and provide for some gestures (under Mac OS X Lion). I'd hate to roll my own
>> if there is something already available.
>> 
>> Thanks,
>> Andrew


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Core data fetch and multithreading (sequel)

2010-11-25 Thread vincent habchi
Le 24 nov. 2010 à 05:53, Chris Hanson a écrit :

> If your code actually looks like this, it's a bug: You're using entityInMOC1 
> in another thread. Pass JUST its object ID, not the object itself, from one 
> thread to the other.

Well, it turns out it is caused by something else. But never mind, I have 
pinpointed it and will investigate.

I had a further question: is there any possible way to force a newly created 
object in a MOC to be visible to other MOCs except a -save: operation? Suppose 
I have a single varying entity in a 1:n relationship to a set of a ten 
thousand, and I want to keep track of the changes in two separated MOCs. 
Surely, there has to be a more efficient way than -save: which will attempt to 
write to the disk each time it is called… Something in between. No?

Thanks,
Vincent___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Objective-C Mind Map Libraries

2010-11-25 Thread Andrew McLaughlin
So I guess there's none? :)

Andrew


On Nov 22, 2010, at 9:55 PM, Andrew McLaughlin wrote:

> Hi guys (and gals),
> 
> I'm new to the Objective-C arena and am still getting my bearings. Besides 
> the amazing set of libraries that Apple provides in the SDK, is there an open 
> source repository elsewhere of Objective-C libraries that can be used in 
> development? Specifically, I'm looking for a SourceForge or FreshMeat type of 
> site that is searchable.
> 
> I have an app idea that will span, iPhone, iPod Touch, iPad and the Mac OS X 
> Desktop that I would like to development. The main UI for this app will be a 
> Mind Map structure. Nothing quite as crazy/fancy as what Tony Buzan and those 
> folks are doing. Each node of the diagram will need to be clickable, editable 
> and provide for some gestures (under Mac OS X Lion). I'd hate to roll my own 
> if there is something already available.
> 
> Thanks,
> Andrew
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/pik0%40me.com
> 
> This email sent to p...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Saving a file in a new folder

2010-11-25 Thread Kyle Sluder
On Thu, Nov 25, 2010 at 11:47 AM,   wrote:
> When the user does a "Save As", I want to create a folder with the same name 
> as the file name they chose and put the file in that folder because there are 
> other files associated with the main file being saved.

It sounds like what you really want to do is use a document package.

NSFileWrapper does what you need.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Saving a file in a new folder

2010-11-25 Thread jeffs87




Hi,


When the user does a "Save As", I want to create a folder with the same name as 
the file name they chose and put the file in that folder because there are 
other files associated with the main file being saved.


I'm using [NSData writeToFile] to save and I thought about moving it after it 
is saved with [NSFileManager movePath] in my documents saveToURL method.  Or 
calling [NSDocument setFileURL] in my documents writeToURL method, but I'm not 
sure it's OK to change the URL there.


Will either of those ways work or is there a better way to do that?


thanks
Jeff

 
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-25 Thread Sean McBride
On Wed, 24 Nov 2010 10:14:29 -0800, Dave DeLong said:

>You can also do:
>
>NSString * snowflake = @"\u2744";

You can also put the snowflake character itself within the @"" (which I
won't attempt here, because either my mail client or the listserve will
surely destroy it).  Just be sure your source file is encoded as UTF8,
which is what gcc assumes.  Otherwise pass  -finput-charset to gcc to
specify UTF16 or whatever encoding your source file is.  However, I
think this all requires 10.5 or later.

--

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer  Montréal, Québec, Canada


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Change duration of a running CAAnimation?

2010-11-25 Thread Oleg Krupnov
Hi,

Is there a way to change the duration of an already running
CAAnimation, in order to change its speed?

The animation is added explicitly via [layer addAnimation: forKey:]

When I try to get the animation with [layer animationForKey:] and call
[animation setDuration:], I get an exception that I'm trying to modify
a readonly animation.

I know I could cancel the current animation and start a new one using
the current [layer presentationLayer]'s value as the fromValue, but
this is not convenient because my animation is repetitive and after
such a manipulation it will start from a wrong fromValue on the next
loop.

Thanks!

Oleg.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[iPhone] Creating an iBooks like Grid View with Section Indexes

2010-11-25 Thread Tharindu Madushanka
Hi,

I would like to implement an iBooks like view where there's a grid of
images, and in that we can search for icons with section indexes like menu.

Could some body kindly provide some ideas on how I could achieve this.

Thanks and Kind Regards,

Tharindu
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Responding to the keyboard in an NSCell

2010-11-25 Thread Thomas Davie

On 25 Nov 2010, at 11:30, Graham Cox wrote:

> 
> On 25/11/2010, at 10:12 PM, Thomas Davie wrote:
> 
>> Surely in order to defer control though there would have to be some protocol 
>> defined somewhere that tells us how a view can ask a cell for help in 
>> responding to the keyboard?
> 
> Cells are mostly designed, as far as I can see, to relieve the view of a 
> repetitive drawing task. Where they have an editing function, that's handled 
> by the Field Editor, another view. 
> 
>> Unfortunately, I'm embedding these in an outline view, my current thinking 
>> is to subclass NSOutlineView and hack my own responder events to talk to my 
>> cell, but it seems a bit of a hack – it embeds part of the semantics of my 
>> cell in a class elsewhere, and stops the cell being composible in other 
>> scenarios.  If there really is no real way to do this though, I guess it's 
>> what I'll have to do :/
> 
> 
> The view is the only part that directly responds to the keyboard. You could 
> just pass everything to the cell, but then it wouldn't work the same in a 
> standard control. There is no defined protocol beyond the usual control <--> 
> cell methods which allow you to, e.g. start and stop editing, but do not go 
> further down to individual key events, which are handled by the Field Editor. 
> There are further interactions between the Field Editor and the cell though, 
> maybe your cell could use the FE in a standard way for editing?
> 
> I've made a few NSCell subclasses in my time, and every time it was a deal of 
> trouble. In your case if you want to use NSOutlineView as a host you'll 
> probably have to accept the hassle, or try to make your cell fit in a more 
> standard way.
> 
> Sorry the advice is rather vague - every case seems to be different.

Yep, NSCell certainly seems to introduce a whole bundle of corner cases – this 
is the second of any significance I've tried to implement, and each has thrown 
up different bizarre behaviours.

Here's hoping that now that drawing efficiency is less of an issue, apple can 
refactor NSOutlineView and NSTableView into an NSOutlineView2 that uses 
something more akin to CocoaTouch's cells (that are still views) for drawing.

Tom Davie___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to avoid multiple clicks on a push button

2010-11-25 Thread Uli Kusterer
On Nov 22, 2010, at 10:54 AM, Abhijeet Singh wrote:
> Hi,I am working on a user interface. There is only one window in my 
> application with Back and Next buttons on it. On Next / Back button click my 
> application performs some task and the current view is swapped with another 
> view in the window. It works fine until somebody clicks Next (or Back) button 
> twice in succession like a double click. The event is fired 2 times and it 
> messes up the whole functionality of my application. I tried controlling this 
> behavior by disabling the buttons as soon as they are clicked but it doesn't 
> help. Still the event is fired multiple times. Is there any way i can control 
> this behavior of the push buttons. Please helpRegardsAbhijeetDear 
> cocoadev ! Get Yourself a cool, short @in.com Email ID now!

 The best way to do this is to write your code (i.e. the controller and the 
model, not the view) to keep internal state. That way you can remember whether 
this is a situation where two clicks are OK or not.

 Alternately, have you tried setIgnoresMultiClick: ?

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Responding to the keyboard in an NSCell

2010-11-25 Thread Graham Cox

On 25/11/2010, at 10:12 PM, Thomas Davie wrote:

> Surely in order to defer control though there would have to be some protocol 
> defined somewhere that tells us how a view can ask a cell for help in 
> responding to the keyboard?

Cells are mostly designed, as far as I can see, to relieve the view of a 
repetitive drawing task. Where they have an editing function, that's handled by 
the Field Editor, another view. 

> Unfortunately, I'm embedding these in an outline view, my current thinking is 
> to subclass NSOutlineView and hack my own responder events to talk to my 
> cell, but it seems a bit of a hack – it embeds part of the semantics of my 
> cell in a class elsewhere, and stops the cell being composible in other 
> scenarios.  If there really is no real way to do this though, I guess it's 
> what I'll have to do :/


The view is the only part that directly responds to the keyboard. You could 
just pass everything to the cell, but then it wouldn't work the same in a 
standard control. There is no defined protocol beyond the usual control <--> 
cell methods which allow you to, e.g. start and stop editing, but do not go 
further down to individual key events, which are handled by the Field Editor. 
There are further interactions between the Field Editor and the cell though, 
maybe your cell could use the FE in a standard way for editing?

I've made a few NSCell subclasses in my time, and every time it was a deal of 
trouble. In your case if you want to use NSOutlineView as a host you'll 
probably have to accept the hassle, or try to make your cell fit in a more 
standard way.

Sorry the advice is rather vague - every case seems to be different.

--Graham


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Responding to the keyboard in an NSCell

2010-11-25 Thread Thomas Davie

On 25 Nov 2010, at 10:46, Graham Cox wrote:

> 
> On 25/11/2010, at 9:37 PM, Thomas Davie wrote:
> 
>> I'm trying to implement an NSCell which should be able to respond to the 
>> user pressing backspace to delete something, but I don't quite see how 
>> keyboard handling is meant to work.  The - (BOOL)acceptsFirstResponder 
>> method seems to suggest that NSCell *should* be an NSResponder subclass.  It 
>> isn't though, and it doesn't get sent things like -keyDown: if you return 
>> YES from acceptsFirstResponder.
>> 
>> I get the feeling that I'm missing something obvious here, but I could do 
>> with a prod in the right direction.
> 
> 
> A cell is usually a component of a view. The view is the responder, but I 
> presume the -acceptsFirstResponder method in NSCell is really there so that 
> the host view can defer to its cell to answer that question.

Surely in order to defer control though there would have to be some protocol 
defined somewhere that tells us how a view can ask a cell for help in 
responding to the keyboard?

> If you want to use the cell in a standard view, such as a tableview , matrix, 
> or other control, you'll have to figure out how those classes interact with 
> their cells. If it's in a custom view of your own, you can probably be more 
> loose with how you do it, if compatibility with standard controls isn't 
> required. Though in that case, you could just make a custom view.

Unfortunately, I'm embedding these in an outline view, my current thinking is 
to subclass NSOutlineView and hack my own responder events to talk to my cell, 
but it seems a bit of a hack – it embeds part of the semantics of my cell in a 
class elsewhere, and stops the cell being composible in other scenarios.  If 
there really is no real way to do this though, I guess it's what I'll have to 
do :/

Thanks

Tom Davie___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Responding to the keyboard in an NSCell

2010-11-25 Thread Graham Cox

On 25/11/2010, at 9:37 PM, Thomas Davie wrote:

> I'm trying to implement an NSCell which should be able to respond to the user 
> pressing backspace to delete something, but I don't quite see how keyboard 
> handling is meant to work.  The - (BOOL)acceptsFirstResponder method seems to 
> suggest that NSCell *should* be an NSResponder subclass.  It isn't though, 
> and it doesn't get sent things like -keyDown: if you return YES from 
> acceptsFirstResponder.
> 
> I get the feeling that I'm missing something obvious here, but I could do 
> with a prod in the right direction.


A cell is usually a component of a view. The view is the responder, but I 
presume the -acceptsFirstResponder method in NSCell is really there so that the 
host view can defer to its cell to answer that question.

If you want to use the cell in a standard view, such as a tableview , matrix, 
or other control, you'll have to figure out how those classes interact with 
their cells. If it's in a custom view of your own, you can probably be more 
loose with how you do it, if compatibility with standard controls isn't 
required. Though in that case, you could just make a custom view.

--Graham


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Responding to the keyboard in an NSCell

2010-11-25 Thread Thomas Davie
I'm trying to implement an NSCell which should be able to respond to the user 
pressing backspace to delete something, but I don't quite see how keyboard 
handling is meant to work.  The - (BOOL)acceptsFirstResponder method seems to 
suggest that NSCell *should* be an NSResponder subclass.  It isn't though, and 
it doesn't get sent things like -keyDown: if you return YES from 
acceptsFirstResponder.

I get the feeling that I'm missing something obvious here, but I could do with 
a prod in the right direction.

Thanks

Tom Davie___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com