Thanks for all the input. I am doing x-platform development and we like
to keep mainline code identical so I implemented functions _findfirst and
_findnext using NSFileManager ... it work s pretty cool as follows:
intptr_t _findfirst(CString search, _finddata_t *data)
{
intptr_t rtx
Sticking to the lowest common denominator only to cater for other filesystems
sound like a bad idea to me - we'll be stuck with 8.3 filenames then.
I think the way this was solved in BeOS was pretty nice. A file had a
type/creator code there as a special attribute. A file inherited from a
On Sep 23, 2011, at 5:27 PM, Kyle Sluder wrote:
On Fri, Sep 23, 2011 at 5:01 AM, Sander Stoks san...@stoks.nl wrote:
I think the way this was solved in BeOS was pretty nice. A file had a
type/creator code there as a special attribute. A file inherited from a
different platform would
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.
The C language doesn't make any guarantees about that. While this
optimisation is to be expected,
Hi,
I'll refrain from saying bad things about SOAP, but
http://72.249.21.88/nonintersecting/2006/11/15/the-s-stands-for-simple/?year=2006monthnum=11day=15name=the-s-stands-for-simplepage=
is a must-read.
In my experience, gSOAP (www.genivia.com) works best when trying to consume
WebServices
I'm searching some documentation about 3D sound to play sounds at left,
right, etc channel and modify the frequency of the sound but I don't find
anything in NSSound.
how can I control pane, channel, tone and volume of a sound?
Use OpenAL. It's available for both Mac OS X and iPhone OS.
In practice it probably won't because I believe the Cocoa typesetter
always produces more glyphs than characters (eg: inserting null glyphs
as padding).
I'm not sure that's true - sometimes, multiple characters get replaced by a
single glyph (i.c.o. ligatures). In other words: It can
Hello all,
Is there something special I need to do so that my NSDocument derivative's
undoManager method will return an NSUndoManager for documents loaded from
disk..? When I create a new document, my undo functionality works, but when I
load a document from disk, I get nil back. Even when I
same behavior on an Intel MBP with
10.6 and on a PPC iBook G4 with 10.5.
Thanks,
Sander
On Feb 5, 2010, at 9:06 PM, David Duncan wrote:
On Feb 5, 2010, at 7:46 AM, Sander Stoks wrote:
I want to draw rotated text, and I found out that the regular Cocoa Text
drawing in that case looks
Hi Aki,
Thanks! That was indeed the problem. I checked whether my whole CGLayer
detour was still needed after disabling screen fonts (the reason was that
rotated text looked bad) but I see that's still the case even with screen fonts
disabled.
Thanks again,
Sander
On Feb 6, 2010, at 7:54
Hello all,
I noticed an interesting thing when using Cocoa Text via an intermediate Quartz
CGLayer.
I want to draw rotated text, and I found out that the regular Cocoa Text
drawing in that case looks surprisingly bad. I posted about this before, and
got the suggestion of drawing to an
Hello all,
I wrote some code to draw an NSString rotated by an arbitrary angle, which can
be manipulated interactively. The results are surprisingly bad (compared to
how good font rendering is in general on the Mac). Most notably, the character
positions jump around in whole pixel increments
Hello all,
I am developing an app on my 10.6 machine but try to keep compatibility with
10.4. The binary itself is OK - I can select 10.4 as a target and build a
working universal binary. However, I seem to have introduced a problem in the
nib file. When testing on 10.4, I started getting
In Interface Builder, you have to set deployment target to 10.4 too for
each xib/nib file.
Use the menu Window Document Info to do that.
Ah ha! Thanks, I was looking under a save as or something like that.
Note: Toolbar are not supported for 10.4 nib.
Ouch. But Tiger apps have
Ouch. But Tiger apps have toolbars too - do I have to hand-build them
there?
Actually, don't answer this. Google knew.
--Sander
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
Hello all,
Executive summary: I have an NSTextField in an NSPanel which, under
certain circumstances, doesn't receive mouseDowns anymore.
Specifically, this happens after I end editing with Enter (instead of
Tab)
Background: I am using NSPanel to make a tool window for my app.
This
Hello,
If it's a feature, then it's definitely a new one since the original
specification of Objective-C. It turned out to be surprisingly hard
to find that specification, but I found a grammar description here:
Woah,
I'm sorry everybody... only when I saw my post in the list I realized
that my copy-paste from Safari contained spacer GIFs. Here's the
story again.
---
If it's a feature, then it's definitely a new one since the original
specification of Objective-C. It turned out to be
I have a related question. The various image file formats have their
own options and settings (compression levels, color space,
interlacing, etc.); is there a generic way to access these from within
my application?
For those who still remember BeOS (where the grass was green and the
Hello,
Suppose I have an application which can read and write images (using
Image I/O). To make this known to the OS, I have to add stuff to my
Info.plist, and wanted to do this using UTIs as I understand that's
the new standard. However, I have a few problems here.
First, do I really
On Sep 28, 2009, at 8:38 PM, Kyle Sluder wrote:
C++ code uses exceptions as a control-flow
mechanism, whereas Cocoa reserves them for programmer error.
That is by no means dictated by C++. In fact, it's quite common to
reserve exceptions for exceptional cases in C++ as well. C++
];
doc-MouseDown(e);
}
but for some reason, the event subtype is always
NSTabletPointEventSubtype.
I tried overriding tabletProximity, but it never gets called.
I'm kind of stuck here, so I'm hoping you can provide me with some
pointers...
Many thanks in advance,
Sander Stoks
Hello all,
Thanks to the Event Taps Testbench by PreFab Software (thanks, Bill) I
was able to confirm that the tablet was indeed sending out different
events. The pressure value was correctly set to 1.0 by the ordinary
mouse events (it was a typo elsewhere that caused my
23 matches
Mail list logo