Re: refresh issue with QLPreviewPanel..!

2009-08-31 Thread Julien Jalon
Needless to say that what you do is totally unsupported and will totally break in 10.6. 10.6 now provides a public (incompatible with Leopard) API but even with this API, what you do is greatly unsupported (and will break in the future). Add to that the fact QL panel is very asynchronous, and it's

Re: an app that never quits

2009-09-22 Thread Julien Jalon
Note that when filing this kind of bug, it's always better to explain more precisely your use case (not just "let me have background processes!") as it might help design a suited solution within the constraints of the device (same way "Push notifications" was proposed to solve many use cases) --

Re: using QLPreviewPanel and supporting 10.5

2009-10-10 Thread Julien Jalon
Replace all calls to [QLPreviewPanel sharedPreviewPanel] and other class calls to weak calls: [NSClassFromString(@"QLPreviewPanel") sharedPreviewPanel]. On Sat, Oct 10, 2009 at 3:47 AM, Mitchell Livingston wrote: > Hello, > > I want to support Quick Look in my application, but still support 10.5.

Re: blocks and autorelease weirdness

2010-04-19 Thread Julien Jalon
I don't see anything wrong with the output being 1/2: -(void) test { testString = NULL; dispatch_async(dispatch_get_global_queue(0, 0), ^{ dispatch_async(dispatch_get_main_queue(), ^{ NSString* aString = [[NSMutableString alloc] init];* // reta

Re: blocks and autorelease weirdness

2010-04-19 Thread Julien Jalon
I have to add that using dispatch_async on main queue within an NSApp will automatically drain the autorelease pool. AppKit drains the autorelease pool upon NSEvents dispatch. On Mon, Apr 19, 2010 at 12:36 PM, Julien Jalon wrote: > I don't see anything wrong with the output b

Re: blocks and autorelease weirdness

2010-04-19 Thread Julien Jalon
And of course, I need some rest: On Mon, Apr 19, 2010 at 12:38 PM, Julien Jalon wrote: > I have to add that *you can't assume* using dispatch_async on main queue > within an NSApp will automatically drain the autorelease pool. > > AppKit drains the autorelease pool upon

Re: menu madness with retain count

2010-04-27 Thread Julien Jalon
ObjectAlloc instrument is your friend. Configure it to record retains and releases. Much more accurate, much easier to understand what's going on. On Tuesday, April 27, 2010, Gary L. Wade wrote: > On 04/27/2010 2:12 PM, "Bill Bumgarner" wrote: > >> >> On Apr 27, 2010, at 2:09 PM, Gary L. Wade wr

Re: How to Open PPT file in Cocoa Application

2010-06-17 Thread Julien Jalon
You can only use Quick Look through the Preview panel API. Search for QLPreviewPanel No preview view is accessible through API so far. File an enhancement request. -- Julien On Thursday, June 17, 2010, kalpana k wrote: > Hi All, > > I am trying to open a ppt (power point) file in my cocoa appl

Re: autorelease: how does this work!? (if at all)

2010-06-18 Thread Julien Jalon
"Is the compiler/runtime being clever enough to retain it because it is going to be needed in the inner block (if so: very clever!)?" Yes, it is very clever. When creating the block, the ObjC compiler also specifies the Object stored into the block metadata. When the block is copied (which is don

Re: autorelease: how does this work!? (if at all)

2010-06-18 Thread Julien Jalon
[theImage release] is really suspicious. On Friday, June 18, 2010, Jens Alfke wrote: > > On Jun 18, 2010, at 9:20 AM, Mike Abdullah wrote: > >> Aside from your actual question, I urge you to go back and read the Cocoa >> fundamentals. Your method names are totally wrong, > > I only saw one error

autorelease: how does this work!? (if at all)

2010-06-18 Thread Julien Jalon
Suspicious because it clearly does not follow ObjC coding style for memory management. If you have to call release here, it's likely because GetNSImage is incorrect by returning an object that needs to be released. If your code happens not to use C++ (or in very localized places), you should run

Re: quick look question

2011-08-18 Thread Julien Jalon
See QLPreviewPanel http://developer.apple.com/library/mac/#documentation/Quartz/Reference/QLPreviewPanel_Class/Reference/Reference.html On Wed, Aug 3, 2011 at 6:10 AM, Rick Corteza wrote: > Hi again, > > I double-checked but isn't it that this one is just to create thumbnails? > Actually runni

Re: Quick Look Preview with Scrollbar

2011-02-17 Thread Julien Jalon
On Sun, Feb 13, 2011 at 5:13 PM, Andrew Madsen wrote: > I'm writing a Quick Look Plug-in to generate previews of my application's > (Core Data) documents. I've got the generator working ok with one problem. > If the document is large/long, and I return an preview that is say 5000 > pixels high, Qu

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread Julien Jalon
This discussion would be better done in the quicklook-dev mailing list. And in fact, it already took place there. Please avoid cross posting questions like this. On Tue, Dec 8, 2009 at 7:16 PM, Dalmazio Brisinda wrote: > Thanks for that. Okay, I see the QuickLook docs sort of allude to this in >

Re: App Launches in Finder, Hangs While Launching in Debugger

2009-12-14 Thread Julien Jalon
It's not necessarily a memory management problem. As this happens very early in the application launch, when Launch Services uses your Info.plist to register the application, your problem might also be that an entry supposed to be a string is in fact an array. On Mon, Dec 14, 2009 at 9:09 AM, Joe

Re: App Launches in Finder, Hangs While Launching in Debugger

2009-12-14 Thread Julien Jalon
: > > On Dec 14, 2009, at 4:28 AM, Julien Jalon wrote: > > > It's not necessarily a memory management problem. As this happens very > early in the application launch, when Launch Services uses your Info.plist > to register the application, your problem might also be that an

Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-18 Thread Julien Jalon
NSImage needs a connection to the Window Server in Leopard. If you want to do some offscreen headless rendering, use CoreGraphics + ImageIO On Sat, Dec 19, 2009 at 2:21 AM, Mr. Gecko wrote: > Ok, so I've done some more research and found this > http://developer.apple.com/mac/library/technotes/t

Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-19 Thread Julien Jalon
:13 AM, Mr. Gecko wrote: > Can I do exactly what I'm doing there in that? I also need to place some > text in there which I have in the full code, just made my code shorter as an > example. > > On Dec 18, 2009, at 8:07 PM, Julien Jalon wrote: > > NSImage needs a connecti

Re: if statement causing 32 Byte leak?

2010-01-10 Thread Julien Jalon
You have Instruments for that (ObjectAlloc instrument or Zombie/leaks templates). Also under certain conditions, you have the static analyzer. -- Julien from his iPhone Le 10 janv. 2010 à 18:13, "Glenn L. Austin" a écrit : On Jan 10, 2010, at 8:01 AM, Scott Ribe wrote: Also, an isAutoRe

Re: if statement causing 32 Byte leak?

2010-01-10 Thread Julien Jalon
This is the purpose of the zombie instrument. Once you know what object is overreleased, you click on the arrow and voilà, you get the list of retain/release/autorelease so you can look where is the extra one. -- Julien from his iPhone Le 10 janv. 2010 à 19:19, "Glenn L. Austin" a écrit

Re: Garbage Collection Docs Puzzle

2010-01-25 Thread Julien Jalon
Except -retain is more efficient under GC. -- Julien from his iPhone Le 26 janv. 2010 à 00:06, Dave Keck a écrit : sending myData -self at the end of the method would make a lot more sense. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: IKImageBrowserView & IKImageView subclasses not getting called

2010-02-15 Thread Julien Jalon
SnowLeopard introduced a bunch of new public API to make customizing easier: On the view itself: - (void) setBackgroundLayer:(CALayer *) aLayer; - (void) setForegroundLayer:(CALayer *) aLayer; extern NSString * const IKImageBrowserGroupHeaderLayer; /* CALayer */ extern NSString

Re: IKImageBrowserView & IKImageView subclasses not getting called

2010-02-15 Thread Julien Jalon
And you have an example: http://devworld.apple.com/mac/library/samplecode/ImageBrowserViewAppearance/index.html -- Julien On Mon, Feb 15, 2010 at 5:42 PM, Jens Alfke wrote: > > On Feb 15, 2010, at 7:18 AM, Ashley Clark wrote: > > > For objects that were saved in a NIB file -initWithFrame: is

Re: Best 'Cocoa' File Preview

2009-07-12 Thread Julien Jalon
On Mon, Jul 13, 2009 at 12:58 AM, David Blanton wrote: > I am traveling down the QuickLook path ... > > I have followed all directions but my code is not being called by qlmange > as evidenced here: > > 7/12/09 4:46:08 PM qlmanage[855] [QL] Thumbnailing > /users/davidblanton/Aibnb18.pes. Content t

Best 'Cocoa' File Preview

2009-07-13 Thread Julien Jalon
On Monday, July 13, 2009, David Blanton wrote: > > Is it not the case that the UTI is defined in the info.plist > CFBundleDocumentTypes?  (which I have done). Nope, CFBundleDocumentTypes associates your type to the plugin. You should use UTExportedTypes or UTImportedTypes look for "declaring U

Re: Best 'Cocoa' File Preview

2009-07-14 Thread Julien Jalon
Hi David, Glad you got it to work. On Tue, Jul 14, 2009 at 3:34 AM, David Blanton wrote: > > Furthermore why so convoluted and difficult? I should be able to say call > me for files of type'.pes' and be done with it. That's what you need to do. Except file extensions is not a "robust" way to d

Re: UUID method Garbage Collection safe?

2009-07-22 Thread Julien Jalon
Correct code is: + (NSString *)stringWithUUID{ CFUUIDRef uuidObj = CFUUIDCreate(nil); NSString *uuidString = (NSString*)NSMakeCollectable(CFUUIDCreateString(nil,uuidObj)); CFRelease(uuidObj); return [uuidString autorelease];} Or you will leak in GC. -- Julien On Wed, Jul 22, 2009 at 6:45 PM

Re: Reasons why QL would fail to create thumbnail?

2009-08-27 Thread Julien Jalon
Might be interesting to ask your user to use qlmanage -t on the file to see if anything relevant appears here. Also what kind of file is it? Maybe the user has some plugin installed there. On Thursday, August 27, 2009, Graham Cox wrote: > I'm using the following code to generate thumbnail images

Re: Reasons why QL would fail to create thumbnail?

2009-08-28 Thread Julien Jalon
Still, trying "qlmanage -t /path/to/file" on failing machine might help a lot ("qlmanage -t -d4 /path/to/file" on SnowLeopard).Also, check that the path you give is correct even on a case-sensitive FS. -- Julien On Fri, Aug 28, 2009 at 2:01 AM, Graham Cox wrote: > > On 28/08/2009, at 5:12 AM,

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Julien Jalon
It's __ (2 underscores) and not _ -- Julien from his iPhone Le 30 août 2009 à 23:00, Seth Willits a écrit : In Snow Leopard I started seeing this: *** __NSAutoreleaseNoPool(): Object 0x100a49ec0 of class NSCFString autoreleased with no pool in place - just leaking I have no idea wher

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread Julien Jalon
> developers have been able to dictate in other platforms' UIs Welcome to the modern Mac platform where the frameworks try to ensure a coherent user experience, especially for basic controls. -- Julien ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread Julien Jalon
Let me rephrase: same control should have the same behavior across applications. Cocoa framework enforce that rule. Disagreeing with Apple choices about how each control should work is an other story that I'm not sure is interesting for this list. If you want to develop for MacOS X, embrace the f

Re: Designated Initializer

2010-10-30 Thread Julien Jalon
NSWindowController doc states that you should invoke super's initWithWindow: or initWithWindowNibName: "In your class’s initialization method, be sure to invoke on super either one of the initWithWindowNibName:... initializers or the initWithWindow: initializer" This breaks the designated initial

Re: respondsToSelector & "warning: may not respond"

2010-11-26 Thread Julien Jalon
Z) ignore the warning On Fri, Nov 26, 2010 at 9:44 PM, Ken Thomases wrote: > On Nov 26, 2010, at 12:27 PM, Mike Abdullah wrote: > > > C) Typecast the object to a class that is known to implement -setOrdinal: > > D) Typecast the object to id. > > Regards, > Ken > > ___

Re: A Quick Look contribution and a question

2011-01-04 Thread Julien Jalon
Look at Apple provided code sample at: http://developer.apple.com/library/mac/samplecode/QuickLookDownloader/Introduction/Intro.html -- Julien Jalon On Monday, January 3, 2011, Brad Stone wrote: > I'm submitting this code for anyone who needs a quick hack to get Quick Look > worki

Re: QuickLook returning small image

2011-01-15 Thread Julien Jalon
When requesting a thumbnail, it's up to the underlying plug-in to honor the requested size. If icon == NO, Quick Look will return the plug-in's image result as is. If icon == YES, Quick Look will force the requested size (because it adds icon decoration which should match the requested size) - so

Re: File's Owner

2008-05-23 Thread Julien Jalon
On Sat, May 24, 2008 at 12:30 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > On Fri, May 23, 2008 at 11:17 PM, Steve Weller <[EMAIL PROTECTED]> wrote: > > > The hang up that I see is that this documentation give no clue as to the > > reason for File's Owner's existence. > > >From > http://developer

Re: invoking quicklook via code

2008-06-04 Thread Julien Jalon
In fact, this is not entirely true... there is no public way to "activate Quick Look". qlmanage is for debugging purpose only. What's public is: 1) QLThumbnailImageCreate() in QuickLook framework 2) ImageKit usage of Quick Look -- Julien On Wed, Jun 4, 2008 at 3:29 PM, Charles Steinman <[EMAIL P

Re: Building against 10.5 SDK, link error on "open"

2008-06-10 Thread Julien Jalon
The basic POSIX functions have changed a bit in Leopard (to achieve POSIX conformance). This means that POSIX libraries are different in 10.4 SDK vs. 10.5. You can not mix them. Also, if you change the SDK, it's generally a good idea to clean all your targets. -- Julien On Tue, Jun 10, 2008 at 7:

Re: Quick look preview multipage rich text

2008-07-09 Thread Julien Jalon
If I understand correctly your point, it seems that in the first case, you use the direct to data print operation and in the second case, you use the direct to file print operation then read back the file in memory and send it to Quick Look. Both methods use QLPreviewRequestSetDataRepresentation().

Re: Quick look preview multipage rich text

2008-07-11 Thread Julien Jalon
On Fri, Jul 11, 2008 at 8:00 PM, Philip Dow <[EMAIL PROTECTED]> wrote: > > That's right, I realized after posting the message that I should have > boiled it down to the following: > > + (NSPrintOperation *)PDFOperationWithView:insideRect:toData:printInfo: > This operation produces a single page of

Re: Linker error: symbol(s) not found

2008-09-03 Thread Julien Jalon
In the header declaring DGBoardRepFromGame, make sure to declare it extern "C". #ifdef __cplusplus extern "C" { #endif extern DGBoardRepFromGame(DGGame*, char*); #ifdef __cplusplus } #endif On Wed, Sep 3, 2008 at 10:40 PM, Joachim <[EMAIL PROTECTED]> wrote: > Dear list, > > I'm getting a linker

Re: brain-dead NSThread question ...

2008-09-14 Thread Julien Jalon
sleep() is just blocking the thread, so no event is processed. Use run loops instead. Try to replace sleep() with [[NSRunLoop currentRunLoop] runMode:beforeDate:] -- Julien ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Abusing targetForAction: with non-action selectors

2008-09-15 Thread Julien Jalon
It's not safe... once the target is found (using respondsToSelector:, you're right), the action is performed with:[target performSelector:actionSelector withObject:sender]; which means that anything but an object as a sender will potentially crash. The only safe thing you can image is to have an

Re: Dis-Allowing Multiple Instances of an Application

2008-03-04 Thread Julien Jalon
Do something like: CFMessagePortRef identityPort = CFMessagePortCreateLocal(NULL, CFSTR(" com.mycompany.myapplication.unique"), NULL, NULL, NULL); if(identityPort == NULL) { printf(stderr, "Application is already launched\n"); exit(1); } // else keep this port around, it will be destroyed o

Re: localizable strings file with macro

2008-03-04 Thread Julien Jalon
1) Might not be a good idea to use CFStringGetCStringPtr as it might return NULL2) kCFStringEncodingMacRoman is likely not a good choice as the encoding, especially for localized strings If I were you, I'd do something like (warning: Mail compiled code): const char* MyGetLocalizedCString(CFStringR

Re: IKImageBrowserView crash when providing it lots lots of pictures?

2008-03-07 Thread Julien Jalon
IKImageBrowserView is known to support something like 250,000 images so I'd look somewhere else. Providing the full crash stack trace might help understand what object you (or some other place) is likely to be over-released. Also, enabling NSZombie might help you debugging the problem. --

Re: IB3 Application vs File Owner

2008-03-08 Thread Julien Jalon
NSApplication shared instance is now available in all NIB files in IB3. It's there for convenience. File's owner is the object loading the nib. In general, it is NSApp only for MainMenu.nib (the first NIB to be loaded). In that NIB, both objects designate the same instance. -- Julien Sen

Re: [iPhone] xml parsing

2008-03-10 Thread Julien Jalon
I'm pretty sure you read the SDK release notes ;-) If not, I think you should, that's always a good idea. -- Julien On Mon, Mar 10, 2008 at 11:49 PM, Simon Fell <[EMAIL PROTECTED]> wrote: > The iPhone docs point you in the direction of libXML2 for parsing XML, > yet the headers for NSXML are in

Re: [iPhone] xml parsing

2008-03-10 Thread Julien Jalon
I can't comment on the iPhone part as this is NDA (and should not be discussed here) but, on Mac OS X, I'd add /usr/include/libxml2 to the header search path in project (or target) build settings. Also, I'd add the libxml2.dylib to my project using "Add existing framework" or add -lxml2 to the "add

Re: warning: assignment from distinct Objective-C type

2008-03-11 Thread Julien Jalon
1) All init methods should return (id) not a specific class2) your initWithDelegate: is likely too generic as a name and its signature conflicts with an other one. Since [XMPPStream alloc] is typed id, the compiler might not be sure of what method signature you want to use for -initWithDelegate:

Re: warning: assignment from distinct Objective-C type

2008-03-11 Thread Julien Jalon
t; xmppStream = [[XMPPStream alloc] initXMPPStreamWithDelegate:self]; > > all now compiles cleanly. > > Now, the question is: is it bad to continue doing what I've been doing in > having the initializer interface defined to not return id but an instance of > the actual class?

Re: Unable to access an instance properties and methods

2008-03-19 Thread Julien Jalon
I'd bet the firstNote object is not a "DBNNote" instance but an NSString instance. On Wed, Mar 19, 2008 at 5:33 PM, Davide Benini <[EMAIL PROTECTED]> wrote: > Hello folks. > I receive an exception message and my application exits whenever I try > to access properties or methods of an instance of

Re: adding Quicklook preview to my app

2008-04-20 Thread Julien Jalon
If your document's format is a document bundle, just make sure to save your PDF preview inside your document's bundle in a folder names "QuickLook". The preview should be named Preview.pdf The thumbnail should be named Thumbnail.png (or jpg, or whatever format suites you) If you can't do that, you

Re: Toll Free Garbage

2008-12-22 Thread Julien Jalon
Under GC, retain/release is not the same as CFRetain/CFRelease (retain/release does nothing but CFRetain/CFRelease ensures that the object is kept around even if the GC might want to finalize it). The general idea is then that you will have to "cast" the CFRetain at the same time you cast the CFTyp

Re: mydoc.myext/QuickLook/Preview.html and full screen

2008-12-31 Thread Julien Jalon
On Wed, Dec 31, 2008 at 10:37 PM, Gerd Knops wrote: > > On Dec 31, 2008, at 1:22 PM, Gerd Knops wrote: > > I am looking to add QuickLook functionality to a fairly complex document. >> A static html file, using some javascript to interact with the document >> contents would be ideal for a number o

Re: mydoc.myext/QuickLook/Preview.html and full screen

2009-01-05 Thread Julien Jalon
On Fri, Jan 2, 2009 at 5:05 PM, Gerd Knops wrote: > > On Dec 31, 2008, at 8:43 PM, Julien Jalon wrote: > >> >>> On Wed, Dec 31, 2008 at 10:37 PM, Gerd Knops >>> wrote: >>> >>>> >>>> Seemingly arbitrary limitation, when accor

Re: Security With Show Package Contents?

2009-01-12 Thread Julien Jalon
New Pages format is the same but zipped. On Mon, Jan 12, 2009 at 4:27 PM, Devon Ferns wrote: > Have you checked if the new Pages file format is now binary instead of a > package? That would be my guess. I don't see how you can stop anyone from > listing a directory structure. > > Devon > > Chu

Re: UTIs and type codes and extensions

2009-01-13 Thread Julien Jalon
On Wed, Jan 14, 2009 at 2:14 AM, Randall Meadows wrote: > I'm just making sure I'm not missing something... > > There's no system-defined way to go from a UTI to an old-style file type > code (which the UTI docs seem to refer to as a "tag") and back again, am I > correct? > extern CFStringRef UTT

Re: Seamlessly converting any type of document to PDF?

2009-01-14 Thread Julien Jalon
The only consumer Quick Look API so far is QLThumbnailImageCreate(). The rest of the API is to write Quick Look generators. -- Julien On Wed, Jan 14, 2009 at 2:36 AM, Martin Wierschin wrote: > I'm looking for suggestions on how to convert any type of document to PDF. >> > > I've never used it,

Re: How do I guarantee that an object is dealloced on the main thread?

2008-10-06 Thread Julien Jalon
IAs a side note, you always can remove statements like:[NSObject cancelPreviousPerformRequestWithTarget:self ...]; in -dealloc as they are always useless (delayed performs retain the target so if your object is dealloc'ed, there are no outstanding performs for this object). Also, if some object p

Re: NSNotificationQueue EXC_BAD_ACCESS problems

2008-10-07 Thread Julien Jalon
Try your code by enabling NSZombies (Add NSZombieEnabled=YES to the environment before launching your tool/app). This should show you what object is supposed to get messaged. I suspect some object observes your notification but is deallocated. -- Julien On Tue, Oct 7, 2008 at 4:28 PM, Karan, Cem

Re: Leaking CGColor objects

2008-10-26 Thread Julien Jalon
On Sun, Oct 26, 2008 at 4:20 PM, Antonio Nunes <[EMAIL PROTECTED]>wrote: > On 26 Oct 2008, at 14:25, DKJ wrote: > > 1. Is there such a thing as a CGColor class? I don't see it in the >> documentation; but "CGColor" is what Instruments lists as the leaked >> objects. >> > > You are creating CGColo

Re: Leaking CGColor objects

2008-10-26 Thread Julien Jalon
self.foregroundColor = nil in your -dealloc is totally useless (and in this case, it's even logging some error log!). Taking care of foregroundColor is you superclass responsibility. You are only responsible of the object YOU create or retain (that's why the temp pattern is indeed the right one) >

Re: LaunchServices/Finder refuses to recognize my NSDocument subclass

2008-11-01 Thread Julien Jalon
If your document type is a package, it does not conform to public.data but to com.apple.package. -- Julien On Sat, Nov 1, 2008 at 5:12 PM, John Pannell <[EMAIL PROTECTED]>wrote: > Hi all- > > I'm working on a document-based application, but having trouble getting the > Finder to match my documen

Re: Quick Look with native types?

2008-11-28 Thread Julien Jalon
On Fri, Nov 28, 2008 at 5:50 AM, Rob Keniger <[EMAIL PROTECTED]> wrote: > > There's no public API to do this at present. You'd need to create a > temporary file and use the "qlmanage -p /path/to/thefile" tool via NSTask. > I strongly discourage using qlmanage to display the Quick Look panel. "ql

Re: Asynchronous timers (without a run loop)

2008-12-04 Thread Julien Jalon
The question itself does not make a lot of sense for me. A timer API is tightly bound to the underlying framework that is idling your thread. If the idling API is CFRunLoopRun(), you'd use CFTimers, if your idling API is select() or kevent(), you'd use their timeout parameters. So, for what you se

Re: using QuickLook from an application?

2009-03-12 Thread Julien Jalon
-- Julien Le 12 mars 09 à 22:29, Bill Janssen a écrit : I'd like to be able to invoke the QuickLook server from my application to obtain PDF or RTF preview versions of MS-Office Documents before opening them. The capability exists; you can see it in Finder, for instance. But I can't see

Re: Why isn't NSString's caseInsensitiveCompare working correctly?

2009-03-21 Thread Julien Jalon
if( [fn caseInsensitiveCompare:s] ) break; NSLog(@"%@ != %@", fn, s); compare methods return NSOrderedSame (==0) if the strings are the same so your test here seems incorrect. On Sat, Mar 21, 2009 at 7:26 PM, Wesley Spikes wrote: > Odds are, it's a bug that is based entirely in my code, b

Re: Difference between SEL and const char* when sending a message?

2009-04-08 Thread Julien Jalon
64bit runtime selectors are not char* as far as I know. In general, you should use NSSelectorFromString/NSStringFromSelector the more low-level objc functions. On Wed, Apr 8, 2009 at 9:21 AM, Sherm Pendley wrote: > On Wed, Apr 8, 2009 at 3:17 AM, Mark Ritchie wrote: > > > > > "You can not simply

Re: canBeVisibleOnAllSpaces added in 10.5 and deprecated in 10.5?

2009-04-21 Thread Julien Jalon
I think the "how" is obvious. I suspect you're more interested in the "why" :-) -- Julien from his iPhone Le 21 avr. 2009 à 23:34, "Sean McBride" a écrit : Hi, Can someone explain how a method added in 10.5 can be deprecated in 10.5? [sic]

Re: Getting the message text of a mail

2009-04-21 Thread Julien Jalon
The problem is not really that your plugin might be broken by a new version of mail but that it might break mail without the user understanding it's caused by your plugin. -- Julien from his iPhone Le 21 avr. 2009 à 23:47, geoff...@fileflow.com a écrit : On 21 Apr 2009, at 22:53, Kyle Slu

Re: How do I find this compile error?

2009-04-23 Thread Julien Jalon
I think Bill was meaning "QuartzCore" framework (for CoreAnimation) and not CoreAudio :-) -- Julien from his iPhone Le 23 avr. 2009 à 20:17, Bill Bumgarner a écrit : On Apr 23, 2009, at 11:09 AM, James Cicenia wrote: Undefined symbols: "_kCATransactionDisableActions", referenced from:

Re: Memory management in QuickLook plugin

2009-05-20 Thread Julien Jalon
Le 20 mai 2009 à 13:17, Georg Seifert a écrit : Hi, I’m developing a QuickLook plugin for a custom binary file format. As long as I did not cared about memory leaks everything was fine. Then I fixed the leak with the help of Instruments. Everything runs fine from xCode and Instruments b