There is some documentation in the CoreFoundation part for all CFStringRef
formatting, which applies here.
http://developer.apple.com/Mac/library/documentation/CoreFoundation/Conceptual/CFStrings/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265-SW1
laurent
On Tuesday, April 20, 2010, at
One possibility is to install a CFRunLoopObserverRef that would query for
available memory, using task_info on mach_task_self().
Then you can check if you start to are coming nearer to "dangerous
territories". Not perfect though as usually the moment you can not alloc some
memory it can be alre
I think it dépends more of what you application does. If you want to
be more in the situation where it is sure that all you want to observe
is "here" then I woulf advice kCFRunLoopBeforeWaiting
Laurent
Sent from my road phone
On Apr 29, 2010, at 2:27 AM, Kiel Gillard
wrote:
Hi there,
Gustavo
You can use the CGPDF API. However be careful on memory usage (in particular
keeping the CGPDFDocument open all the time could lead to some memory issues
that could be workarounded by closing and reopening it)
Regards
laurent
On Wednesday, May 19, 2010, at 12:07PM, "Gustavo Pizano"
You can try swish-e. Pretty good stuff. I still wish SearchKit would
be public on the iPhoneOS
Laurent
Sent from my road phone
On May 28, 2010, at 7:58 PM, sebi wrote:
Hello,
I'd like to have a quick full text search on a pdf in my app.
Unfortunately the NSMetadata* classes are not ava
MacOS and iPhoneOS are 2 differents platforms. Simply use the iPhone
SDK and UIKit will be there.
laurent
Sent from my road phone
On Jun 1, 2010, at 11:24 AM, Banupriya K
wrote:
Dave,
Thanks for the reply, it would be helpful if i know the framework
used for touch screen in iPhone,
Is this on MacOS or iPhoneOS? I think the way to go on MacOS is
through the scripting bridge
laurent
Sent from my road phone
On Jun 2, 2010, at 8:57 PM, Jeremy Matthews
wrote:
So...I'm working on an app that needs an email framework to send
messages...right now I'm using MailCore, and
You may want to look at NSOperation.
Regards
laurent
Sent from my road phone
On Jun 15, 2010, at 12:22 AM, Ariel Feinerman
wrote:
Hi,
I wish to make programme has cpu-related (one thread per core)
number of
worker threads. When user inputs the data, main thread splits up the
data
an
Why would you want to retrieve the vCard? The sync engine can give you all
attributes for a record. Or maybe AddressBook framework is more suited to your
needs
laurent
Sent from my road phone
On Jun 30, 2010, at 7:59 AM, unixo wrote:
> Hi,
>
> I'm writing a sync client which pulls "Contac
I think the lowest level you get this is with FSFindFolder
laurent
Sent from my road phone
On Jul 12, 2010, at 10:17 PM, Alexander Cohen wrote:
> Hello,
>
> I need to find the system Application Support folder without using either
> Carbon or Cocoa, i can use CoreFoundation though. Is there
Can't you just do what you want using directly CoreAudio?
laurent
On Feb 27, 2011, at 12:08 AM, David Rowland wrote:
> Apple seems to have made it impossible for an app to control the system
> volume. The user can use the physical buttons, and an app can contain an
> MPVolumeView which lets th
You can use the scripting bridge framework which will send AppleEvent in a nice
encapsulated way for you to iTunes
laurent
On Jan 26, 2010, at 10:48 AM, Ramesh P wrote:
> Hi,
> Is it possible to access iTunes from cocoa application? Is there any open
> source framework for accessing iTunes?
>
Did you try to break on -[NSException raise] or on the NSURL
initWithString method?
Laurent
Sent from my road phone
On Mar 4, 2010, at 4:24 AM, Laurent Daudelin
wrote:
I'm trying to debug a problem where an NSOutlineView, as part of a
drag, tries to create an instance of NSURL using "
Hi
I want to add a service to my application. So I created the service
entry in the plist, implemented the methods with proper signature,
register the service at Application Did Finish launching time but
unfortunately I never see my service appearing in the Services menu
(after login and
:34 PM, Laurent Cerveau wrote:
Hi
I want to add a service to my application. So I created the service
entry in the plist, implemented the methods with proper signature,
register the service at Application Did Finish launching time but
unfortunately I never see my service appearing in the
According to the doc it is completely OK for the CFStringPtr to
return NULL.
CFStringGetCStringPtr()
CFStringGetCharactersPtr()
These functions are provided for optimization only. They will either
return the desired
pointer quickly, in constant time, or they return NULL. They might
You can use IOKit UserLibg get the MAC hardware address. I did not
retest it though (it comes from older code) so you probably have to
check for small bugs.
laurent
kern_return_t kernResult;
mach_port_t masterPort;
io_service_t tmpService, controllerService;
CFDataRef
Simply retrying to see if there could be any idea on this one as I
still have trouble getting success
Thanks for the help
laurent
On Jun 23, 2009, at 5:45 PM, Laurent Cerveau wrote:
I realize I did not provide a lot of information. So the Plist of my
apps looks like :
NSServices
5) pbs may not have run. Logging out and back in should make it run
again.
As Malcolm says, if you have access to the SnowLeopard seed, you'll
find that Services easier to debug, with the 10.6 version of
Services documentation describing debugging techniques.
On Jun 25, 2009, at 1
You should check at the effect of reloadData to all your datasource
methods (numberOfRowsInTableView and so on)
laurent
On Jul 23, 2009, at 8:53 AM, syntonica wrote:
Hello Panel--
Ok, this is really annoying me. My app works fabulously on 10.4,
but on 10.5, gives an out-of-bounds array
Hi
I have a document application with multiple window controllers. The
document contains an array of objects (custom classes no Core Data
here), called "entities" (NSMutableArray*) In one of the window,I
would like to have an NSOutlineView (one column for now) with a
binding for its conte
Hi
Is there a way to store serialize and store PDFselection ?
If I have a PDF View , select part of it and get the currentSelection,
showing it tells something like
Page index = 2, Range = (0, 21]
However I do not see where I could get the range of the PDFSelection
and later recreate a sel
Thanks Antonio
But the problem here is to get the "yourRememberedRange". Access to
it does not seem to exist on a PDFSelection. As John Calhoun suggested
in another email I tried with rect but this fails also.
laurent
On May 16, 2008, at 9:11 AM, Antonio Nunes wrote:
You ask the page f
On May 16, 2008, at 9:40 PM, John Calhoun wrote:
On May 15, 2008, at 11:43 PM, Laurent Cerveau wrote:
If I have a PDF View , select part of it and get the
currentSelection, showing it tells something like
Page index = 2, Range = (0, 21]
However I do not see where I could get the range of the
On May 17, 2008, at 6:57 PM, Antonio Nunes wrote:
I would suggest you try to verify why John's suggestion fails, as
one would expect it to work. Alternatively try this:
Untested:
1. Ask for the bounds of the selection
2. Get the string of the selection
3. Get the string of the page
4. Use ran
Hi
Is there a way to get all subclases of a class. I have a class that I
would call abstract (although I did not find any real way to declare
some methods as virtual) and would like to get a list of all "real"
subclass implementations.
Thanks
laurent
_
( 0 != ( match = strncmp( temp->name, subclass->name,
strlen( subclass->name && ( NULL != temp->super_class ))
temp = temp->super_class;
return ( match == 0 );
}
hth,
cheers, Graham
On 18 Jun 2008, at 3:19 pm, Laurent Cerveau wrote:
H
Hi
Hi I have 2 questions related to NSRuleditor (not NSPRedicateEditor);
- On one side, I can not find the format of a formattingDictionary for
a NSRuleEditor. If I look at the doc the only thing I find is
" The formatting dictionary should have NSString keys and NSString
values. The syntax
On Jun 19, 2008, at 11:02 PM, Kyle Sluder wrote:
On Thu, Jun 19, 2008 at 4:40 PM, Martin <[EMAIL PROTECTED]>
wrote:
And as you can see, nothing has changed and the first line has
certainly not
been replaced by "bla". What am I doing wrong?
Shouldn't you be using the -id flag, not -change?
Hi Peter
The formatting dictionary is used for localization. You can see a
sample at http://homepage.mac.com/gershwin/NibBasedSpotlightSearcher.zip
Nice! Thanks for the pointer.
A nil formatting dictionary should be fine. The delegate methods
are probably not being called because the
Hi
I am experiencing with Core Animation applications in kiosk mode and
starts from the MenuView sample code I found somewhere on Apple web
site (it displays a Quartz Composer composition in the background with
a few CALayer that acts as button). In order to go full screen I have
been goi
That was it!
Thanks
laurent
On Jun 27, 2008, at 8:33 PM, Michael Ash wrote:
On Fri, Jun 27, 2008 at 1:37 PM, Laurent Cerveau <[EMAIL PROTECTED]>
wrote:
Hi
I am experiencing with Core Animation applications in kiosk mode
and starts
from the MenuView sample code I found somewh
Hi
This is probably a stupid question but : in a NSDocument application I
did not found a way to be notified of change of currentDocument. For
now I do some tricks with notification on window but I was wondering
if I simply missed a part?
Thanks
laurent
__
Hi
I am trying to us KVC in a way that it allows me to add an accessor
semantic to an object so that it can answer to simple valueForKeyPah
call.
For example I want to be able to write [myObject
valueForKeyPath:@"texts.title.en"] which would give me the english
version of the title of m
check the proper behavior for observer to make sure they
can observe properly
thanks
laurent
On Jul 9, 2008, at 6:46 PM, Hamish Allan wrote:
On Wed, Jul 9, 2008 at 2:39 PM, Laurent Cerveau <[EMAIL PROTECTED]>
wrote:
Apparently what is happening is that the keyPath is decomposed,
Hi
Does anyone know if Is there a way to call an Apple Data Detector from
Objective-C code. I'd like to use one that recognizes dates and events
and that is working pretty well in Mail.
Thanks
laurent
___
Cocoa-dev mailing list (Cocoa-dev@lists
Hi
I am working with IKImageBrowser and would like to display the size of
the image as subtitle in the browser. So I implemented an
imageSubtitle method of the IKImageBrowserItem and started using
ImageIO to get those info. However it looks to me that I am doing
unnecessary work as the IK
Hi
I have an XML document with obviously some problems with it but that
needs to be parsed in all cases.
One of the problem is apparently an encoding one as some text read in
an editor as "Restaurant, Bar, Bistro, CafÈ" (reopening with an
ISO-8859-1 Windows apparently is solving the issue
Hi Thomas
I think this is simply a customized NSOutlineView embedded in an
NSSplitView and you should certainly start around this. In Leopard you
have the option to make NSSplitView with "no size" separator that
should helpt to get you the final look and feel
laurent
On Mar 12, 2008, at
On Mar 18, 2008, at 6:17 PM, Jay Martin <[EMAIL PROTECTED]> wrote:
All,
I'm new to Cocoa (surprise) and I'm now working on a little app, and
I've come up with a solution to an issue and I'd like some feedback
on that solution. Here's the problem description:
I have an NSTableView, bound
Gestalt API should help you or sysctl family. Note that I am not sure
about Rosetta handling in both APIs
laurent
Sent from my roadPhone
On Mar 19, 2008, at 3:14 PM, Nick Rogers <[EMAIL PROTECTED]> wrote:
Hi,
In my app I'm reading raw bytes from the file.
So to get a integer's correct value
Hi
When using NSURLConnection is there a way to get back the NSURL from
the NSURLConnection (in a delegate method)? Apparently if I log the
NSURLConnection it knows what URL is concerned but I do not find an
accessor for it.
Thanks
laurent
___
:
You get the URL out of the NSURLRequest, which you can fetch at
various points.
-Rob
On Mon, Mar 24, 2008 at 2:02 PM, Laurent Cerveau <[EMAIL PROTECTED]>
wrote:
Hi
When using NSURLConnection is there a way to get back the NSURL from
the NSURLConnection (in a delegate method)? Apparen
Is there any message in the console?
Laurent
Sent from my roadPhone
On Mar 26, 2008, at 5:51 PM, Lorenzo <[EMAIL PROTECTED]> wrote:
Hi,
I have compiled my Cocoa application against SDK 10.4.
While my application runs well on both Leopard and Tiger on Intel
machines,
It run on PPC machines o
It seems to be debuggable by yourself. Can you start up in XCode on
PPC? If not you can simply launch the app under gdb and put a
breakpoint at +[NSDictionary dictionaryWithObjectsAndKeys:] with br.
From then it would be interesting to check the passed argument (on
PPC the argument of a met
On Mar 28, 2008, at 8:52 PM, Andrew Merenbach wrote:
I would like to make a header view that looks like an
NSTableHeaderView (i.e., with the gradient of such a table header
view) for an NSTextView and possibly an NSCollectionView. This view
would label the view in question, but also would
On 10.5 you should b able to hide directly (NSTableColumn setHidden
method). . Otherwise the best way is to keep an NSArray around (for
example in a subclass of NSTableView) where you add the column you
want to hide. Then when you hide a column you add it to this array and
delete it from th
On Apr 27, 2008, at 6:33 AM, Jens Alfke wrote:
On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote:
I was wondering what was the best way to calucate folder size with
cocoa? I
was able to do this but it does not include resource forks:
I think you'll need to drop down to a lower-level API to get
When reading through the doc for Document based application the advice
is to implement undo by making setter invoking
prepareInvocationWithTarget.
Is there a way to have this done "automatically" with properties. For
now it looks to me like I have to remove all @synthetize directive and
r
Hi
I'd like to programmatically mov to trash a file from an afp mounted
volume. I have been using NSWorkspace with
NSWorkspaceRecycleOperation but it fails (tag returned is -1).
Is there a way to get a more exact description of the error?
I tried to move to FSPathMoveObjectToTrashSync and
Hi
I'd like to programmatically mov to trash a file from an afp mounted
volume. I have been using NSWorkspace with
NSWorkspaceRecycleOperation but it fails (tag returned is -1).
Is there a way to get a more exact description of the error?
I tried to move to FSPathMoveObjectToTrashSync and
Hi
I am using NSPredicateEditor to display some predicates and after a few fights
all is now fine. A feature I find particularly convenient is the use of a
formatting dictionary to display user friendly sentences to a user.
In another part of my application, I show some data computed based on t
The usual sqlite API are available . The header is to be imported with
#import
laurent
On Mar 28, 2014, at 5:19 PM, Dave wrote:
> Hi,
>
> If I need to access SQLite Directly on Mac and iOS, do I need to include my
> own SQLite Library or can I use the in-built SQLite?
>
> Cheers
> Dave
>
53 matches
Mail list logo