CoreData regression or performance problem, anyone?

2014-11-12 Thread Vincent Habchi
fairly quick on 10.9). I was just wondering if some of you, in their applications using SQLite/Core Data, had noticed such a severe loss of performance. Thanks, Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: CoreData regression or performance problem, anyone?

2014-11-12 Thread Vincent Habchi
this correctly. But I wanted also to warn every possible user of Core Data that they might experience regression without any evident reason. Cheers! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Implicitly unwrapped optionals

2014-06-15 Thread Vincent
var ans : String? if b { if b! { ans = True } else { ans = False } } else { ans = Nil } The first test sifts nil from everything else, and the second one 'true' from 'false'. Vincent ___ Cocoa-dev mailing list (Cocoa

Re: Implicitly unwrapped optionals

2014-06-14 Thread Vincent
an implicitly unwrapped optional bool in an if? Good riddle. Did you try in a playground? 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

Re: Another app's UTI can break your app

2014-06-10 Thread Vincent
some .SQL files, namely the PostGIS geospatial extension to PostgreSQL, that have nothing to do with any MacOS app, and that I don’t want to open with Coda, but rather TextWrangler, for example. These “famous” extensions should maybe be excluded from any type of association. Vincent

Re: 64-bit iOS

2013-09-11 Thread Vincent Habchi
in the tiniest space… 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

Re: 64-bit iOS

2013-09-11 Thread Vincent Habchi
. Cheers! 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

Re: 64-bit iOS

2013-09-11 Thread Vincent Habchi
of usable space, and then see their code crippled by low memory warnings. Aside from this, I concur it might be handier for Apple to converge all its platforms to 64-bits. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

NSSplitView strange behavior

2013-08-13 Thread Vincent CARLIER
Hi list, I experience some strange behavior with NSSplitView. Let me explain what I'm trying to do : The split view contains 3 subviews (2 dividers), and has a delegate that controls it. It is an horizontal split view. Let number those 3 views from top to bottom 0, 1 and 2. The upper divider

Initializing a NSMutableString an odd way

2013-07-31 Thread Vincent Habchi
Folks, I apologize if this question looks stupid or contrived. Here it is: is it permissible to use [@“” mutableCopy] to initialize (or reset) a NSMutableString instead of the more classical [[NSMutableString alloc] init]? Thanks a lot! Vincent

Re: Initializing a NSMutableString an odd way

2013-07-31 Thread Vincent Habchi
]? Yes. Thanks! (No side effect?) 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

Re: Initializing a NSMutableString an odd way

2013-07-31 Thread Vincent Habchi
the constant empty NSString. BTW, what’s the difference between [[NSMutableString alloc] init] and [[NSMutableString alloc] initWithString:@“”]? Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Initializing a NSMutableString an odd way

2013-07-31 Thread Vincent Habchi
: with a range covering the whole string. Thanks again so much to everybody for your enlightening advice. Vincent — “Common sense is the collection of prejudices acquired by age eighteen.” A. Einstein. ___ Cocoa-dev mailing list (Cocoa-dev

Re: Initializing a NSMutableString an odd way

2013-07-31 Thread Vincent Habchi
. But that possibility depends on precise implementation details of NSMutableString. So I guess profiling is once more everybody’s friend. Thanks anyhow once more for taking the time to answer my very minor inquiry. Vincent ___ Cocoa-dev mailing list (Cocoa-dev

Mixing Obj-C and C methods

2013-07-30 Thread Vincent Habchi
Hi everybody, I have a very simple question: if I embed a C-function (more precisely, a callback from an external C-library) in an Obj-C object, can I expect this function to behave like a regular method? I.e. can it freely access ‘self’ and other attributes? Thanks a lot! Vincent

Re: Mixing Obj-C and C methods

2013-07-30 Thread Vincent Habchi
are legal, aren’t they? Thanks a lot! 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

Re: Mixing Obj-C and C methods

2013-07-30 Thread Vincent Habchi
Hi and thanks a lot to anybody! I posted some answer before, but since it included a screenshot I’m afraid it didn’t make it through. I was just trying to show that when I access an iVar of ‘self’ in the C-function (e.g. self - _egg), Xcode autocompletion pop-up shows the iVars list, but each

Re: Apple Developer Update

2013-07-25 Thread Vincent Habchi
, this list is one of the few remaining open media… Cheers! 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

Re: developer.apple.com under maintenance for a few days now?

2013-07-21 Thread vincent habchi
ID, profiles… let’s hope it is not! 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

Re: The cost of using objects rather than plain C variables

2013-07-12 Thread Vincent Habchi
into the buffer rather than needing decoding, and partitioning it into several chunks in order to optimize the number of triangles displayed. I think I’ll use NSData to store these chunks. Thanks to all for the precious help! Vincent ___ Cocoa-dev mailing list

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Vincent Habchi
would not do that. Alternatively, I could have allocated NSData as memory chunks. Or alternatively use NSPointerValue to wrap a pointer to a malloc’ed C array as an object. This one I wasn’t aware of. Vincent ___ Cocoa-dev mailing list (Cocoa-dev

Another curiosity: IB warnings misplaced view

2013-07-08 Thread Vincent Habchi
? But they are consistent and do not cause any further warning… This is not a real snag, but I’m rather curious to know what’s the culprit… Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

The cost of using objects rather than plain C variables

2013-07-07 Thread Vincent Habchi
[0], t [1], t [2])) and this time, the memory usage didn’t top 21 MB, which seems reasonable. How come I get such a large discrepancy in memory usage between the two solutions? Is the overhead of Cocoa object so huge? Thanks! Vincent ___ Cocoa-dev

Re: The cost of using objects rather than plain C variables

2013-07-07 Thread Vincent Habchi
objects, but I was really struck by the figures I got. Is there any hope in the future to be able to store simple types like int or floats in NSArrays? Thanks again to all for your enlightening comments and kindness! Vincent ___ Cocoa-dev mailing list

Re: The cost of using objects rather than plain C variables

2013-07-07 Thread Vincent Habchi
better optimizing speed, too! Cheers and thanks a lot once again! 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

Re: The cost of using objects rather than plain C variables

2013-07-07 Thread Vincent Habchi
that with Xcode (I suppose it’s not a hard task, it’s just that I hadn’t time to slog on that). Have a nice Sunday, Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: iOS OpenGL ES woes

2013-07-03 Thread Vincent Habchi
David, BTW, is it possible to add subviews to a CAEAGLLayer backed view? I have been fighting all day to show a progress indicator atop this backed view, in vain. Thanks! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: iOS OpenGL ES woes

2013-07-03 Thread vincent habchi
David, Yes, […] Thanks for your quick answer and your kindness, as usual! Then something is wrong with my setup, I’ll investigate further. Have a great day! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

iOS OpenGL ES woes

2013-07-02 Thread Vincent Habchi
! 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: https

Re: iOS OpenGL ES woes

2013-07-02 Thread vincent habchi
Uh, I just realized I had overlooked the call to EAGLContext presentRenderbuffer. It should work better when I add it. Sorry for the noise, but this is a bit confusing at start! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: iOS OpenGL ES woes

2013-07-02 Thread Vincent Habchi
On 2 juil. 2013, at 17:54, Vincent Habchi vi...@macports.org wrote: Uh, I just realized I had overlooked the call to EAGLContext presentRenderbuffer. It should work better when I add it. It doesn’t work even with that call added. I don’t really grasp when the CAEAGLLayer gets somehow hooked

Re: iOS OpenGL ES woes

2013-07-02 Thread Vincent Habchi
higher abstractions! Just a further question: on a CAEAGLLayer backed view, [view setNeedDisplay] does nothing, doesn’t it? Thanks for your answer! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Accelerate Framework?

2013-06-16 Thread vincent habchi
Hi Rick, Where to go for questions about the Accelerate Framework? I have a fairly good knowledge of the Accelerate framework and its opensource counterpart, Atlas. If I might be of any help, don’t hesitate. Vincent ___ Cocoa-dev mailing list

Re: Document Window Versions Drop-down Menu

2013-05-15 Thread Vincent CARLIER
Hi Kyle, 2013/5/14 Kyle Sluder k...@ksluder.com On May 14, 2013, at 1:33 AM, Vincent CARLIER vince.carl...@gmail.com wrote: No matter what I do, only the first window (that is the window managed by the first WC created for the document) gets the menu. What does the secondary window

Re: Document Window Versions Drop-down Menu

2013-05-15 Thread Vincent CARLIER
Re Quincey, 2013/5/14 Quincey Morris quinceymor...@rivergatesoftware.com On May 14, 2013, at 04:30 , Vincent CARLIER vince.carl...@gmail.com wrote: As you will see, the menu item opens a second (and any number) of windows for the document, but only the first has got the menu. Yes, now

Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Hi all, I'm writing a document based app. Each document is displayed in a window, and can have several other windows too. The primary window and the others are the same (same NIB, same window controller), each window is able to display a different part of the document data. At the beginning,

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
if subsequent WC aren't the same class, and windows are totally different. I don't know if it makes any difference, I'm running Mac OS X Mountain Lion 10.8.3, Xcode 4.6.2. Vince. 2013/5/14 Quincey Morris quinceymor...@rivergatesoftware.com On May 14, 2013, at 00:07 , Vincent CARLIER vince.carl

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
Vincent CARLIER vince.carl...@gmail.com Hi Quincey, thank you for the quick answer. Unfortunately, no, I didn't forget to add the window controllers using the method you mention. At document creation/opening, a first WC is created (I mean alloc/init), added to the document, and released

Re: Sandboxed app record-level indexing of Core Data in Spotlight (not working)

2013-05-14 Thread Vincent CARLIER
Date: Tue, 14 May 2013 12:07:02 +0200 From: Giacomo Tufano g...@iltofa.com To: cocoa-dev@lists.apple.com Subject: Sandboxed app record-level indexing of Core Data in Spotlight (not working) Message-ID: 127dc0cb-c922-435c-adba-e873e8593...@iltofa.com Content-Type: text/plain;

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Vincent CARLIER
To illustrate the issue, I created a simple test project that you can clone from Bitbucket : https://bitbucket.org/vincedev/tesdocapp.git As you will see, the menu item opens a second (and any number) of windows for the document, but only the first has got the menu. Vince. 2013/5/14 Vincent

Re: Sandboxed app record-level indexing of Core Data in Spotlight (not working)

2013-05-14 Thread Vincent CARLIER
Re gt, 2013/5/14 Giacomo Tufano g...@iltofa.com Il giorno 14/mag/2013, alle ore 13:00, Vincent CARLIER vince.carl...@gmail.com ha scritto: I have a working .mdimporter that works correctly if I copy the importer in /Library/Spotlight (it will index and spotlight find the documents

Writing a custom Spotlight Importer

2013-05-09 Thread Vincent CARLIER
Hello everybody, I've written a Spotlight Importer for my custom document format. The document has an UTI, used by the Spotlight Importer. Everything is fine, I can see my Metadata Fields correctly indexed by Spotlight, I can see the right importer loaded (it is bundled into the .app) when I run

Re: LTO and debugging

2013-03-21 Thread vincent habchi
! Si diverta ! ;) 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

Re: Floating-point differences between ARM processors

2013-01-07 Thread vincent habchi
assumed the original poster had a knowledge of both rounding error and stability theory in algorithms, including use of ad-hoc band-aids like preconditioning. Writing a simulation code w/out such knowledge would anyhow be somewhat vain. Cheers! Vincent

Re: Floating-point differences between ARM processors

2013-01-05 Thread vincent habchi
-2. So, if you need a 1e-10 precision, a Taylor expansion in O(x^5) is enough. That means three terms for either cos and sin, that you can perform in parallel using NEON. I am not sure crlibm is optimized for SIMD… Vincent ___ Cocoa-dev mailing

Re: Floating-point differences between ARM processors

2013-01-04 Thread vincent habchi
steps of an iterative algorithm (using trigonometric identities, you can bring back your angle to, say, [0, pi/4] and perform a Taylor series approximation or something equivalent to get the final result). Vincent ___ Cocoa-dev mailing list (Cocoa-dev

Re: MKMapView compositing

2012-11-05 Thread Vincent Habchi
over the maps), isn’t it? Cheers and 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

Re: MKMapView compositing

2012-11-05 Thread Vincent Habchi
/afternoon/evening/night, depending where you are on the planet 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

MKMapView compositing

2012-11-04 Thread vincent habchi
the MKMapView as a subview and manually relate gestures to coordinate change? Thanks, Vincent PS: I apologize if this question looks stupid. Albeit I have a reasonable experience with MacOS, I am a complete newbie with iOS. ___ Cocoa-dev mailing list (Cocoa

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Vincent Habchi
? / Are you sure you set bufferingType to NSBackingStoreBuffered? 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

Re: Event loop expiration date insight

2012-10-31 Thread Vincent Habchi
cases, should not make any difference except for debugging purposes. 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

Re: printing Utf8

2012-10-31 Thread Vincent Habchi
, …). 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: https

Re: how to clip inside a path

2012-10-30 Thread Vincent Habchi
thereof should probably take place on that list, not here.) Try Eero. http://www.eerolanguage.org. I maintain the package on MacPorts, if you want to have a try. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: how to clip inside a path

2012-10-30 Thread Vincent Habchi
On 30 oct. 2012, at 07:25, Vincent Habchi vi...@macports.org wrote: http://www.eerolanguage.org. I maintain the package on MacPorts, if you want to have a try. Should be http://eerolanguage.org. There is no leading www. V. ___ Cocoa-dev mailing list

ARC question

2012-10-29 Thread Vincent Habchi
correctly with ARC? Is it not going to leak each intermediate version of ‘convertedString’? Thanks a lot! 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

Re: More NSFileManager Issues

2012-10-29 Thread Vincent Habchi
. UserInfo=0x10011e700 {NSURL=/var/folders/m9/5p__qm3967qchc9_26tl85kmgn/T/RelaxTest/input1000.txt} Shouldn’t your URL (the one in the the error message just above) look like ‘file://var/folders…’ rather than a mere ‘/var/folders…’? Viel Spaß, Vincent

Re: ARC question

2012-10-29 Thread Vincent Habchi
, and so on until the end of the HTML string. That would mean one single pass instead of as many as the number of pairs in the dictionary. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: ARC question

2012-10-29 Thread Vincent Habchi
for % in URLs (e.g: “ ” ↔ “%20”) but does not handle HTML-ampersand escapes (e.g: nbsp; ↔ “ ”). I did a shallow Google search and found nothing except statements that no NSString or other Cocoa object could provide such a service. Vincent ___ Cocoa

Re: createDirectoryAtPath:withIntermediateDirectories:attributes:error: Returns NO when it exists

2012-10-29 Thread Vincent Habchi
Le 29 oct. 2012 à 13:23, Andreas Grosam agro...@onlinehome.de a écrit : T$ ls -al total 816 drwx-- 10 me staff 340 29 Okt 13:15 . Did you try with your . directory having permissions drwxr-xr-x? V. ___ Cocoa-dev mailing list

Re: ARC question

2012-10-29 Thread Vincent Habchi
of '' and see if that makes up a valid escape sequence. Much of the problem if dealing with HTML rather than XML is that there are a vast range of special sequences. e.g. micro; Yeah, that’s what I thought of. I will add a note in the body of the article about this. Thanks for all! Vincent

Re: ARC question

2012-10-29 Thread Vincent Habchi
Le 29 oct. 2012 à 15:00, Kyle Sluder k...@ksluder.com a écrit : On Oct 29, 2012, at 6:55 AM, Vincent Habchi vi...@macports.org wrote: Actually, it's not. From the docs: Note: Currently, only the standard predefined entities are supported; passing NULL for entitiesDictionary is sufficient

Re: how to clip inside a path

2012-10-29 Thread Vincent Habchi
everything then fill the inside of your path with the background color, which will give you the same result. Of course, if you are dealing with a stack of CALayers, it might be more difficult to find a workaround like this. Vincent ___ Cocoa-dev

Re: ARC question

2012-10-29 Thread Vincent Habchi
Le 29 oct. 2012 à 15:30, glenn andreas gandr...@me.com a écrit : Given that there are also decimal (#DD;) and hexadecimal escape sequences (#x;) in HTML, trying to support those through the use of a dictionary of sequence - replacement is going to be impractical. Hopefully, I have only

Re: ARC question

2012-10-29 Thread Vincent Habchi
That’s blatant. […] I meant obvious. I just read the use of “blatant” for “obvious” was incorrect. My bad. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: how to clip inside a path

2012-10-29 Thread Vincent Habchi
. If you pass a clip mask, that goes directly into the auxiliary buffer. Is there any pundit out here to confirm this? Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: ARC question

2012-10-29 Thread Vincent Habchi
contents before. Anyhow, thanks again for your help. 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

Re: Classes incompatible with weak references

2012-08-16 Thread Vincent Habchi
occasional bombing ;) 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

Re: Classes incompatible with weak references

2012-08-15 Thread Vincent Habchi
was released, and suddenly all the code relying on that trick broke on the TT and later machines… 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

Re: 32-bit on 10.8

2012-08-12 Thread Vincent Habchi
changing almost all our habits of thought, but once it is done, it is fairly rewarding. 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

Re: 32-bit on 10.8

2012-08-11 Thread Vincent Habchi
into universal Intel binaries (and even PPC, since they are still people out there with legacy hardware, myself included). But that’s more a moral endeavor than a real need. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Stupid block syntax!

2012-07-12 Thread Vincent Habchi
Le 5 juil. 2012 à 20:23, Greg Parker gpar...@apple.com a écrit : Note that C++ allows overloading of almost everything, including binary ^, but it doesn't allow creation of new operators like unary ^. Thanks Greg for that precision. Vincent

Re: Stupid block syntax!

2012-07-09 Thread Vincent Habchi
++ overloading. ^ is not overloadable in C++, that was the unique such operator left. 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

Re: NSInteger vs int vs int32_t

2012-07-09 Thread Vincent Habchi
(SSE, AVX). This is somehow reflected in C code through the use of special macros to instruct the compiler to respect these alignments. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: NSInteger vs int vs int32_t

2012-07-09 Thread vincent habchi
On 9 juil. 2012, at 20:40, Greg Parker gpar...@apple.com wrote: On Jul 9, 2012, at 5:44 AM, Vincent Habchi vi...@macports.org wrote: Modern CPU do not enforce strict alignment for integer access. You can perfectly access a Dword (64 bits) at any address, even or odd. It is just more

Transparent NSTextField

2012-06-28 Thread Vincent Habchi
succeeded in programming a totally transparent NSTextField, or shall I recourse to a CATextLayer instead? Thanks, Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Transparent NSTextField

2012-06-28 Thread Vincent Habchi
to make it look like an underscore _ (the whole point is to make the input field look like a vintage console editing field). I guess I'll not escape writing a custom NSTextView to serve as the window field editor. Thanks for the hint! Vincent

Re: Transparent NSTextField

2012-06-28 Thread Vincent Habchi
a background – but I suspect this is caused by highlighting. So I will try to override the standard highlighting behavior to get just some text coloring while letting the background clear. Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

CALayer coordinates question

2012-06-25 Thread Vincent Habchi
. Is that normal? Thanks a lot! 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

Re: WWDC

2012-04-25 Thread vincent habchi
•••—•— On 25 avr. 2012, at 19:19, Rick Mann rm...@latencyzero.com wrote: Is WWDC really sold out already? That was faster than the eye can wink. I wonder how many tickets are actually offered. Vincent ___ Cocoa-dev mailing list (Cocoa-dev

Re: WWDC

2012-04-25 Thread Vincent Habchi
, those provide great opportunities to network and stay in touch, I am sure. Uh? There was a iOS 5 tour in Europe I heard of, but nothing concerning OS X this year or the year before AFAIK. Vincent ___ Cocoa-dev mailing list (Cocoa-dev

Re: Stenography

2012-04-02 Thread vincent habchi
, but I think it is a syllabic script. I don’t think anybody use it anymore: it has been superseded by Siri :) Steganography comes from Greek steganos, roof, wherefore it’s use for obfuscated communications. Vincent ___ Cocoa-dev mailing list

Re: Xcode - An Apple Embarrassment

2012-03-02 Thread vincent habchi
I bought it for future reference and put it in my shelf). The first chapter describes the per-platform IDE suitable to use OpenGL. XCode was mentioned, but, obviously, the co-author was using Code::Blocks instead. Vincent ___ Cocoa-dev mailing list

Re: Formatter for angle display?

2012-01-18 Thread Vincent Habchi
outlet of a text field or similar, to it. I won’t dare (A), because it seems quite complex (I can’t figure out a way to output ° ’ ” instead of , or ., for example). I always overlook the (B) solution, which seems to be less involved. Thanks so much, cheers! Vincent

Formatter for angle display?

2012-01-17 Thread Vincent Habchi
exists, I will also file an upgrade request for 10.8. 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

Re: Formatter for angle display?

2012-01-17 Thread vincent habchi
, would it? Salut ! 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

Does NSOpenGLView override -isOpaque?

2012-01-06 Thread Vincent Habchi
method of NSView to return YES instead of NO; Is that intended behavior (I can’t find any documentation about it)? Cheers! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Does NSOpenGLView override -isOpaque?

2012-01-06 Thread Vincent Habchi
, that was not the right snippet, but the question still remains ;) 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

Re: Does NSOpenGLView override -isOpaque?

2012-01-06 Thread vincent habchi
Corbin, Yes, NSOpenGLView has: - (BOOL)isOpaque { return YES; } Thanks for your answer! Could the documentation then mention than when an NSOpenGLView occupies the whole frame of its parent window, and when its context is set to draw under, one should override -isOpaque to return NO,

Re: NSString looses Umlaute

2011-12-22 Thread vincent habchi
Le 22 déc. 2011 à 09:13, Alexander Reichstadt l...@mac.com a écrit : Yes, you are right, but it does not make a difference, I tried all encodings. Did you try UTF-8 encoding? Besides, if you open your file with an external application, e.g. OpenOffice or TextWrangler, what happens? Vincent

Re: NSString looses Umlaute

2011-12-22 Thread Vincent Habchi
Yes, tried NSUTF8StringEncoding, I really tried all the ones I found in the NSString encoding documentation. When I import this file as DBF into FileMaker Pro it looks just as bad. But when I import it into a MySql it works fine. Here an example of what NSLog says: R\U0094h.,

Re: NSString looses Umlaute

2011-12-22 Thread Vincent Habchi
OK, I found a way to import it into FileMaker. It looks good when I use DOS Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF and NSString is toll free bridged, but does this apply to the encodings as well? There is some post from 2000 by Ali Ozer that would

Re: Carousel - like control for Mac OS

2011-12-21 Thread Vincent Habchi
And then, I do not have much space on the window to put this coverflow (while a strip can be small and still look good), plus a strip can display more than 1 item at once, and the user can click on any of these items without too much of scrolling). Why don’t you use CALayers (more

Re: Carousel - like control for Mac OS

2011-12-21 Thread vincent habchi
Nick, I cannot elaborate much on this and give you code (not because it is somehow confidential, but just because it is a general idea I don’t have implemented, though I’m familiar with CAScrollLayers). The idea is thus: 1. Draw a normal NSView that you back with a CAScrollLayer. Give it the

Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?

2011-11-18 Thread Vincent Habchi
Hi there, I’m trying to draw a flipped NSImageBitmapRep object (data comes out of an OpenGL depth buffer) in a NSView. I thought I could set up an appropriate affine transform (x’ = x, y’ = height - y), embed it in a dictionary and put that in the hints parameter of a

Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?

2011-11-18 Thread Vincent Habchi
PS : Of course, a workaround is to flip the view coordinates thus: [myView translateOriginToPoint:NSMakePoint(0, [self frame].size.height)]; [myView scaleUnitSquareToSize:NSMakeSize(1, -1)]; but it still does not explain why -drawInRect:fromRect:…hints: seems to ignore the hints. Vincent

Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?

2011-11-18 Thread vincent habchi
respectFlipped:YES or NO, it does not change anything. Besides, NSImageBitmapRep has no ‘flipped’ property, because it does not inherit from NSImage, but from NSImageRep! Vincent ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?

2011-11-18 Thread vincent habchi
Le 18 nov. 2011 à 19:45, Kyle Sluder a écrit : Yes, that would indeed be true. I just assumed you were adding the image rep to an NSImage and using -[NSImage drawInRect::]. I considered that for a while, but since -drawInRect exists for NSBitmapImageRep, I thought it was useless.

Re: Natural language

2011-11-13 Thread Vincent
The Advanced Text Processing session from WWDC '11 should be of help. https://developer.apple.com/videos/wwdc/2011/ On Nov 13, 2011, at 4:31 PM, Luca Ciciriello wrote: Hi All. Any one knows how to use the class NSLinguisticTagger in order to decompose a phrase in its grammar components

Re: NSDateFormatter refuses to format dates

2011-09-27 Thread Vincent Spader
On Sep 27, 2011, at 1:41 AM, Gerriet M. Denkmann wrote: The following code produces an empty string: calender = [ [ NSCalendar autoupdatingCurrentCalendar ] retain ]; NSString *dateTemplate = @eeeddHHmmss; NSLocale *locale = [calender locale]; // en_IE

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread vincent habchi
Some apps, including iTunes, using /Users/Shared/ for DRM. It may still be world-writable in Lion [which I can't confirm as I haven't switched yet...come on 10.7.2...]. I can confirm /Users/Shared is world writable on 10.7; besides, it has the sticky (8) bit set, just like /tmp. Vincent

  1   2   3   4   >