Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Jean-Daniel Dupas
? That's what causing the issue on my machine. -- Jean-Daniel ___ 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

Re: What replaces the (now deprecated) NSObjCValueType?

2009-09-16 Thread Jean-Daniel Dupas
directive But if you really want to hard code type mapping, this may help: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100-SW1 -- Jean-Daniel

Re: NSRunLoop issue

2009-09-17 Thread Jean-Daniel Dupas
can I prevent the busy loop, or achieve my goals with a better design? Add a dummy source (mach port or timer with an insanely high fire date) before running your loop. So you re sure there is at least one source. -- Jean-Daniel

Re: NSRunLoop issue

2009-09-17 Thread Jean-Daniel Dupas
Le 17 sept. 2009 à 18:28, Jerry Krinock a écrit : On 2009 Sep 17, at 07:48, Jean-Daniel Dupas wrote: Add a dummy source (mach port or timer with an insanely high fire date) before running your loop. So you re sure there is at least one source. Please show a few lines of code adding

Re: settings to build for 10.5 on 10.6?

2009-09-17 Thread Jean-Daniel Dupas
invocation in the build log). -- Jean-Daniel ___ 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

Re: Obtaining the application icon

2009-09-17 Thread Jean-Daniel Dupas
://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: settings to build for 10.5 on 10.6?

2009-09-17 Thread Jean-Daniel Dupas
compatibility. -- David Duncan Apple DTS Animation and Printing -- Jean-Daniel ___ 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

Re: basic threading question: if parent thread completes

2009-09-17 Thread Jean-Daniel Dupas
never intend to call pthread_join() on a thread, then call pthread_detach(). -- Jean-Daniel ___ 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

Re: What is the life of the c string returned by NSString's UTF8String method?

2009-09-18 Thread Jean-Daniel Dupas
from the string using -[NSString dataUsingEncoding:NSUTF8StringEncoding] and then use -[NSData bytes] as the returned value for this method is guarantee to have the same life as the NSData object. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa

Re: Static Analyzer and Core Foundation

2009-09-19 Thread Jean-Daniel Dupas
prioritize it ? -- Jean-Daniel ___ 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

Re: favicon of address

2009-09-21 Thread Jean-Daniel Dupas
the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing

Re: Why am I always getting the linker error: 'duplicate symbol'...?

2009-09-22 Thread Jean-Daniel Dupas
://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Suppressing Crash Reporter dialogs for a task

2009-09-23 Thread Jean-Daniel Dupas
I would do in my software as it has some side effects like preventing crash log generation, and it also affect the bugger, but this is what your looking for I think. -- Jean-Daniel Le 22 sept. 2009 à 18:58, Mark Woods a écrit : Easier said than done. It's QuickTime that's crashing. I'm

Re: Disable CD Ejection

2009-10-02 Thread Jean-Daniel Dupas
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/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel

Re: Issues with NSWindowDelegate on multiple Mac OS X platforms

2009-10-07 Thread Jean-Daniel Dupas
couple of line at the top of the file (or in a prefix header): #ifndef MAC_OS_X_VERSION_10_6 #define MAC_OS_X_VERSION_10_6 1060 #endif -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
want to make every variable global... but if that is proper technique, then i'll do that... are we saying there is no way to make a process use real memory? Jon. What is real memory ? Do you want to address the RAM directly without any virtual to physical mapping ? -- Jean-Daniel

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
, at 10:08 AM, Shawn Erickson wrote: This is, as stated, nonsensical. -- Jean-Daniel ___ 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

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Record and Playback immediately

2009-10-15 Thread Jean-Daniel Dupas
. Can anybody put some light on this example. Cocoa-dev is not Macos-dev. This question has nothing to do with Cocoa and should be ask on coreaudio list. That said, maybe the AudioQueueTools sample code may help. -- Jean-Daniel ___ Cocoa-dev

Re: Record and Playback immediately

2009-10-16 Thread Jean-Daniel Dupas
have any Macos Dev forums where I can ask this kind of questions. And I am working on AQRecord/Play. But still I haven't figured it out how to make it immediately. Regards Mustafa On Thu, Oct 15, 2009 at 4:27 PM, Jean-Daniel Dupas devli...@shadowlab.org wrote: Le 15 oct. 2009 à 09:41

Re: Make a solid line look like 3D

2009-10-26 Thread Jean-Daniel Dupas
get my hands on OpenGL ... maybe for a screen saver! Thanks again, I adore this list, Matthias -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Jean-Daniel Dupas
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/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel

Re: waiting for async callback in main thread

2009-10-27 Thread Jean-Daniel Dupas
a radar. -- Jean-Daniel ___ 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

Re: Single Static Library for iPhone and Desktop applications

2009-10-28 Thread Jean-Daniel Dupas
between them, but it seems cumbersome. Thanks again You can create one project with 2 configurations (one for iPhone, one for desktop) or create two projects referencing the same files. Note that this is not a Cocoa question, and should be ask on Xcode- user list instead. -- Jean-Daniel

Re: Trying blocks

2009-10-30 Thread Jean-Daniel Dupas
__NSConcreteWeakBlockVariable (from libSystem) -- Jean-Daniel ___ 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

Re: PolKit for Leopard and later

2009-10-30 Thread Jean-Daniel Dupas
. And if you find MIT or BSD not restrictive enough, choose at least LGPL, so people will be able to dynamically link on the framework in other non GPLv3 products. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: why use pow(x, 2)?

2009-11-02 Thread Jean-Daniel Dupas
dist = ((red - r) * (red - r)) + ((green - g) * (green - g)) + ((blue - b) * (blue - b)); -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: cocoabuilder.com

2009-11-10 Thread Jean-Daniel Dupas
: my query site:lists.apple.com/archives/cocoa-dev or my query site:lists.apple.com/archives/xcode-users -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: CALayer subclass allocation problem

2009-11-11 Thread Jean-Daniel Dupas
://www.chronosnet.com/ You can also give OmniObjectMeter a try (it's free). It helped me to track some zombies on Leopard. Now I'm using the Instruments' Zombie tool which does it pretty well too. http://www.omnigroup.com/developer/omniobjectmeter/ -- Jean-Daniel

Re: Stack-based C++ class to wrap NSAutoreleasePool

2009-11-14 Thread Jean-Daniel Dupas
Is Initialization) thing is one of the few things I really miss when doing plain Cocoa/Obj-C programming. Rolf In fact, this trick is possible in plain Obj-C too (with macros and a little help from the compiler): http://kickingbear.com/blog/archives/13 -- Jean-Daniel

Re: Scanning

2009-11-17 Thread Jean-Daniel Dupas
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/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel

Re: Authorization plugin samples

2009-11-20 Thread Jean-Daniel Dupas
-Daniel ___ 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

Re: ColorSyncDeprecated.h in OSX - 10.6

2009-11-20 Thread Jean-Daniel Dupas
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/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel

Re: question about informal protocols

2009-11-20 Thread Jean-Daniel Dupas
. -- Jean-Daniel ___ 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

Re: question about informal protocols

2009-11-20 Thread Jean-Daniel Dupas
, informal protocols are deprecated in favor of @protocol with @optional method. -- Jean-Daniel Did not see that it was deprecated, but will take your lead and convert them to that. Does the, in your opinion, optional addition pretty much replace categories as a whole

Re: method_getNumberOfArguments counts blocks twice

2009-11-21 Thread Jean-Daniel Dupas
. And from the obj runtime sources, it look like this pattern is not properly handled in method_getNumberOfArguments function. You should fill a bug report. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: [OT] Re: A question of legality...

2009-11-23 Thread Jean-Daniel Dupas
with the darwin sources. Search for mysql on this page: http://opensource.apple.com/release/mac-os-x-1061/ -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: How to get notified pause when QTMovieView when clicked

2009-11-24 Thread Jean-Daniel Dupas
QTMovieRateDidChangeNotification -- Jean-Daniel ___ 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

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Jean-Daniel Dupas
a whether the specified item should display the outline cell (the disclosure triangle). And if it's not enough, you can subclass NSOutlineView and override -[NSOutlineView frameOfOutlineCellAtRow:] to returns NSZeroRect. -- Jean-Daniel ___ Cocoa

Re: NSWorkspace in a daemon

2009-11-30 Thread Jean-Daniel Dupas
cross the Mach namespace boundary between the root-based daemon and other user-level apps that might be listening for it. Bill AppKit is not daemon safe. http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html#SECLIVINGDANGEROUSLY -- Jean-Daniel

Re: Retrieving informations about Network Interfaces

2009-12-03 Thread Jean-Daniel Dupas
is this file ? I can't find the framework that contains these definitions. Am I missing something ? Yes. You're missing the fact that this question is not related to Cocoa and should be ask on an other list. -- Jean-Daniel ___ Cocoa-dev mailing list

Menu item enabling

2011-06-23 Thread Daniel Luis dos Santos
and have set the target of the created menu items to that class. It gets called for every menu item except the one with the submenu. If I expand the submenu it doesn't get called. What am I missing ? Regards Daniel ___ Cocoa-dev mailing list (Cocoa-dev

Re: Menu item enabling

2011-06-23 Thread Daniel Luis dos Santos
Hello, I thought that by implementing the validation method it wouldn't matter if the menu item has an action set on it. That was the problem. Once I set the action, the validation method started being called. Thanks, Daniel On Jun 23, 2011, at 5:42 PM, Nick Zitzmann wrote: On Jun 23

Re-using the same NIB on two owners

2011-06-26 Thread Daniel Luis dos Santos
Hello, I have an application that has two windows. Each window is associated to a controller class. On one method of each class I load another NIB that has a subordinate window. That subordinate NIB has outlets and actions that should be associated to the loading class, so on the NIB I set the

Re: dealloc and scarce resources

2011-06-30 Thread Jean-Daniel Dupas
descriptor number can be reused by the system. And there is absolutely no guarantee the system use simple incremental value for fd AFAIK. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: CFMutableDictionary Capacity

2011-07-20 Thread Jean-Daniel Dupas
as an undefined behavior. -- Jean-Daniel ___ 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

Re: CFMutableDictionary Capacity

2011-07-20 Thread Jean-Daniel Dupas
Le 21 juil. 2011 à 01:48, Jean-Daniel Dupas a écrit : Le 21 juil. 2011 à 00:30, Jens Alfke a écrit : On Jul 20, 2011, at 2:34 PM, Andreas Grosam wrote: According the doc, the parameter capacity in function CFDictionaryCreateMutable() sets the *maximum number* of key-value pairs

Re: NSWindowController window deprecated

2011-07-23 Thread Jean-Daniel Dupas
-- Jean-Daniel ___ 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

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Jean-Daniel Dupas
application on 10.5. -- Jean-Daniel ___ 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

Re: Xcode 3.2.6 on Lion ?

2011-07-23 Thread Jean-Daniel Dupas
Le 23 juil. 2011 à 23:40, Conrad Taylor a écrit : Sent from my iPhone On Jul 23, 2011, at 2:28 PM, Jean-Daniel Dupas devli...@shadowlab.org wrote: Le 23 juil. 2011 à 23:22, Mike Abdullah a écrit : Oh, then there's 10.5 thing with libcrypto As far as I can tell that got fixed

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Jean-Daniel Dupas
. -- Jean-Daniel ___ 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

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Jean-Daniel Dupas
. Clearly this must be what happened with XC3, getting us to where we are now. Fill a report to ask a preference to choose between single Window UI and multiple windows UI. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Does anyone else dislike Xcode 4?

2011-07-25 Thread Jean-Daniel Dupas
prefer Xcode 3 over all other IDE I have to use (ItelliJ IDEA, Visual Studio, Eclipse, …) ;-) -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Disable Lion's window restoration?

2011-07-26 Thread Jean-Daniel Dupas
by explicitly setting this user default to false in your application. I don't know if it works, but it may be worth the try. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Unnecessary Boolean Warning

2011-08-01 Thread Jean-Daniel Dupas
-- Jean-Daniel ___ 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

Re: ARC and Singletons

2011-08-02 Thread Jean-Daniel Dupas
/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Unnecessary Boolean Warning

2011-08-03 Thread Jean-Daniel Dupas
. They are 2 different operators. One important difference for instance is that if you write if (a() b()), both a() and b() will always be executed, while if you write if (a() b()), b() will be executed only if a() is true. -- Jean-Daniel

Re: Symbol not found: _OBJC_CLASS_$_NSURL

2011-08-04 Thread Jean-Daniel Dupas
version, or the SDK setting. NSURL has been around since Moses, but until recent changes in OS X, it was in Foundation framework, not in CoreFoundation. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Drawing text like Lion's Mail

2011-08-08 Thread Jean-Daniel Dupas
it. By the way, let's see if you find which one is the original :-) -- Jean-Daniel ___ 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

Re: Drawing text like Lion's Mail

2011-08-08 Thread Jean-Daniel Dupas
Le 8 août 2011 à 18:50, David Duncan a écrit : On Aug 8, 2011, at 8:16 AM, Jean-Daniel Dupas wrote: I think you can create a CGPath from some text using CTFrameGetPath(). Once you get the path, you can do whatever you want (clipping, shadow, gradient, …). CTFrameGetPath() returns

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Jean-Daniel Dupas
is public and used by third party plugins. -- Jean-Daniel ___ 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

Re: UpdateSystemActivity(OverallAct) to prevent sleep in Lion...

2011-08-30 Thread Jean-Daniel Dupas
IOPMAssertionCreateWithName reference for details. Note: On 10.5, this API does not prevent the screen saver to start, so if you need to support this feature on Leopard, you may have to continue to use UpdateSystemActivity on this OS version. -- Jean-Daniel ___ Cocoa-dev

Re: Replacement for MethodReplacement?

2011-09-02 Thread Jean-Daniel Dupas
was broken. -- Jean-Daniel ___ 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

Re: Gestalt

2011-09-22 Thread Jean-Daniel Dupas
-- Jean-Daniel ___ 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

Re: Question about SMJobBless

2011-09-30 Thread Jean-Daniel Dupas
sent to devli...@shadowlab.org -- Jean-Daniel ___ 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

Re: Question about SMJobBless

2011-09-30 Thread Jean-Daniel Dupas
...@shadowlab.org -- Jean-Daniel ___ 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

Re: Question about SMJobBless

2011-09-30 Thread Jean-Daniel Dupas
Le 30 sept. 2011 à 18:14, Eric Gorr a écrit : On Sep 30, 2011, at 10:34 AM, Jean-Daniel Dupas wrote: Le 30 sept. 2011 à 16:01, Eric Gorr a écrit : I had a couple of followup questions concerning the approach used by SMJobBless in developing a secure helper tool. In the How

Re: Missing header files/folders?

2011-10-07 Thread Jean-Daniel Dupas
framework headers ;-) -- Jean-Daniel ___ 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

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-12 Thread Jean-Daniel Dupas
in the Resources folder of the CoreMediaIO framework), so it may not require too much works to provide an API to third party codecs and muxer/demuxer writers. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Blocks vs. life, the universe and everything

2011-10-15 Thread Jean-Daniel Dupas
. It appears with ARC. For the rational, you can read this: http://clang.llvm.org/docs/AutomaticReferenceCounting.html#autoreleasepool -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Blocks vs. life, the universe and everything

2011-10-18 Thread Jean-Daniel Dupas
Le 18 oct. 2011 à 14:00, Michael Babin a écrit : On Oct 17, 2011, at 2:49 PM, Greg Parker wrote: On Oct 15, 2011, at 12:28 PM, Jean-Daniel Dupas wrote: Le 15 oct. 2011 à 21:10, Seth Willits a écrit : Unrelated, when did @autoreleasepool pop in? I don't remember if I knew about

Re: Blocks vs. life, the universe and everything

2011-10-18 Thread Jean-Daniel Dupas
Le 18 oct. 2011 à 16:09, Michael Babin a écrit : On Oct 18, 2011, at 8:42 AM, Jean-Daniel Dupas wrote: Le 18 oct. 2011 à 14:00, Michael Babin a écrit : What are the minimum requirements for using @autoreleasepool? The same as ARC, even when not used with ARC (Xcode 4.2 for Mac OS X

Re: ARC + return of autoreleased CFType

2011-10-20 Thread Jean-Daniel Dupas
would love to hear from anybody at Apple who can confirm that this is the way Analyze is meant to work. If you want to avoid ambiguity, just add a CF_RETURNS_RETAINED annotation attribute to your method. -- Jean-Daniel ___ Cocoa-dev mailing list

Re: CFRunLoopObserver causes crash on NSView drag.

2011-10-22 Thread Jean-Daniel Dupas
/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: dispatch queue as property

2011-11-02 Thread Jean-Daniel Dupas
/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Private Method?

2011-11-07 Thread Jean-Daniel Dupas
. j o a r -- Jean-Daniel ___ 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

Re: Private Method?

2011-11-07 Thread Jean-Daniel Dupas
Le 7 nov. 2011 à 16:19, Kyle Sluder a écrit : On Nov 7, 2011, at 4:10 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: Le 7 nov. 2011 à 08:49, Joar Wingfors a écrit : In OjbC you don't need to provide declarations for a method foo if all callers of foo can see the definition

Re: ObjC's flat and all-exported namespace, help!

2011-11-08 Thread Jean-Daniel Dupas
into doing anything the same bad old way that everything else does. -- Jean-Daniel ___ 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

Re: ObjC's flat and all-exported namespace, help!

2011-11-09 Thread Jean-Daniel Dupas
...@shadowlab.org -- Jean-Daniel ___ 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

Re: Allocating too much memory kills my App rather than returning NULL

2011-11-09 Thread Jean-Daniel Dupas
source code in both OS and apps, something that seems neither simple nor practical to me. Kids These Days. While the Space Shuttle exploded twice, I hasten to point out that neither of those failures was due to software bugs. No, but Ariane 5 first launch failure was ;-) -- Jean-Daniel

Re: ObjC's flat and all-exported namespace, help!

2011-11-09 Thread Jean-Daniel Dupas
your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: How to compiler arm assembler .s source file with Xcode 4.2?

2011-11-09 Thread Jean-Daniel Dupas
compile .s using the assembler rule. Check also the File Type of your file (select your file in Xcode, and in the file inspector in the right panel, make sure the file type is set to assembly and not something else). -- Jean-Daniel ___ Cocoa-dev

Re: How to determine if there is an internet connection available?

2011-11-12 Thread Jean-Daniel Dupas
wrap you BSD socket into a CFSocketRef, and schedule it on the current run loop. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Calling a Cocoa library from C

2011-11-12 Thread Jean-Daniel Dupas
]; etc.; } return blahblah; } Note that this code is not equivalent with the previous one. @autoreleasepool does not drain on exception. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Witch controls to use to implement an Xcode (4.2) like toolbar view

2011-11-14 Thread Jean-Daniel Dupas
that this is some sort of NSSegmentedControl … A simple NSMatrix of NSButton can do the trick too. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Resizable borderless windows in Lion

2011-11-18 Thread Jean-Daniel Dupas
://www.mulle-kybernetik.com/weblog/2009/04/_nsi3_cfexecutablelinkedonoraf.html (Failing that, I'll re-implement windows resizing myself :) Thanks, Nicholas -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Resizable borderless windows in Lion

2011-11-18 Thread Jean-Daniel Dupas
Le 18 nov. 2011 à 11:59, Jean-Daniel Dupas a écrit : Le 18 nov. 2011 à 10:59, Nicholas Francis a écrit : Problem with Xcode 4 is that this is the same build farm that compiles out standalone executable which has compatibility down to Tiger, so we're stuck on Xcode 3.x versions

Re: NSNumberFormatter Strangeness

2011-11-24 Thread Jean-Daniel Dupas
a couple of tens ? -- Jean-Daniel ___ 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

Re: NSNumberFormatter Strangeness

2011-11-24 Thread Jean-Daniel Dupas
Le 24 nov. 2011 à 23:46, Conrad Shultz a écrit : On 11/24/11 2:27 PM, Jean-Daniel Dupas wrote: Just a question. Why do you need a max frag digit greater than a couple of tens ? I'm writing a custom formatter that will be used in the context of a scientific application and which

Re: NSNumberFormatter Strangeness

2011-11-25 Thread Jean-Daniel Dupas
Le 25 nov. 2011 à 04:26, Conrad Shultz a écrit : On 11/24/11 3:20 PM, Jean-Daniel Dupas wrote: A formatter is used to convert an internal number representation (integer, floating point, fixed point) into a string. Is has nothing to do with the precision of the represented value. If you

Re: Locks

2011-12-07 Thread Jean-Daniel Dupas
is better as it don't consume CPU waiting for other threads. -- Jean-Daniel ___ 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

Re: Locks

2011-12-08 Thread Jean-Daniel Dupas
Le 8 déc. 2011 à 09:57, Andreas Grosam a écrit : On Dec 7, 2011, at 12:07 PM, Jean-Daniel Dupas wrote: Le 7 déc. 2011 à 06:10, Ken Thomases a écrit : On Dec 6, 2011, at 10:05 PM, Don Quixote de la Mancha wrote: You still shouldn't implement it manually using atomic increment

Re: Singletons with ARC

2011-12-09 Thread Jean-Daniel Dupas
. -- Jean-Daniel ___ 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

Re: Singletons with ARC

2011-12-09 Thread Jean-Daniel Dupas
Le 9 déc. 2011 à 10:36, Jean-Daniel Dupas a écrit : Le 9 déc. 2011 à 08:47, Ken Thomases a écrit : On Dec 9, 2011, at 1:11 AM, Uli Kusterer wrote: On 09.12.2011, at 07:55, Ken Thomases wrote: Double-checked locking is broken. It is an anti-pattern in many languages, including

Re: NSString looses Umlaute

2011-12-22 Thread Jean-Daniel Dupas
%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ 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

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Jean-Daniel Dupas
too I think (what if the directory name isd\';rm -rf ~;\' ) -- Jean-Daniel ___ 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

Re: ARC and blocks

2012-01-26 Thread Jean-Daniel Dupas
if myController. The second object is the block. myController retains the block. the block retains myController. You have your retain cycle. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: copy isEqual nightmares

2012-02-17 Thread Jean-Daniel Dupas
the doc: Special Considerations When you know both objects are strings, this method is a faster way to check equality than isEqual:. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: What to use instead of operatingSystemVersionString

2012-02-24 Thread Jean-Daniel Dupas
/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-27 Thread Jean-Daniel Dupas
]) -Wparentheses -Wno-idiomatic-parentheses -- Jean-Daniel ___ 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

<    5   6   7   8   9   10   11   12   13   14   >