Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
> On 22 Oct 2016, at 23:26, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Oct 22, 2016, at 2:21 PM, Jean Suisse <jean.li...@gmail.com >> <mailto:jean.li...@gmail.com>> wrote: >> >> I don’t know if it’s so irrelevant

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
> On 22 Oct 2016, at 23:15, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Oct 22, 2016, at 12:11 PM, Jean Suisse <jean.li...@gmail.com >> <mailto:jean.li...@gmail.com>> wrote: >> >> To refine, what difference is there between ObjC’s >

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
> On 22 Oct 2016, at 21:24, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Oct 22, 2016, at 11:42 , Jean Suisse <jean.li...@gmail.com > <mailto:jean.li...@gmail.com>> wrote: >> >> My app should get an access denied error (

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
= [manager enumeratorAtURL:directoryURL includingPropertiesForKeys:keys options:NSDirectoryEnumerationSkipsSubdirectoryDescendants errorHandler:^BOOL(NSURL *url, NSError *error){return true; }]; for (NSURL* file in enumerator) { } > On 22 Oct 2016, at 21:11, Jean Suisse <jean

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
; >> On Oct 22, 2016, at 11:42 AM, Jean Suisse <jean.li...@gmail.com> wrote: >> >> To add a little more information: it happens when encountering any directory >> that the user can’t read. >> My app should get an access denied error (the enumerator should be

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
To add a little more information: it happens when encountering any directory that the user can’t read. My app should get an access denied error (the enumerator should be nil for instance). It shouldn’t crash. > On 22 Oct 2016, at 20:37, Jean Suisse <jean.li...@gmail.com> wrote: >

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
Well, I was afraid of that. Unfortunately, below is the smallest sample of code possible… still crashes. Looks like I may have to check the directory rights before even attempting to enumerate it. Expected result in the present case is: “the while loop doesn’t run because the directory isn’t

Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
Dear Quincey, Thank you for your reply. I have posted the code including the line below. It got deleted by mistake. Though it looks like I am trying to access "/.DocumentRevisions-V100/“, it is not what I am trying to achieve. At some point my app needs to enumerate user-selected

EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/

2016-10-22 Thread Jean Suisse
Dear All, Running the code below, I get EXC_BAD_INSTRUCTION error. My questions are: 1. Why ? 2. How can I prevent it ? Best regards, Jean CODE let directoryURL = URL(fileURLWithPath: "/.DocumentRevisions-V100/") let manager = FileManager.default let

Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
>> Additionally, I was unable to find any leaks with Instruments (but I barely >> know how to use it) > > Probably the next step would be to learn more about Instruments. I was a little to harsh when I said that. I know everything I got from the WWDC videos. But I need more practice. And more

Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
> On 16 sept. 2015, at 18:58, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 16, 2015, at 04:00 , Jean Suisse <jean.li...@gmail.com> wrote: >> >> Does anyone know what to try / measure / observe to get more clues? > > It see

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
> On 16 sept. 2015, at 23:54, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 16, 2015, at 14:28 , Jean Suisse <jean.li...@gmail.com> wrote: >> >> I thought of that at first, to solve the uncommitted CA transactions issues. >> But th

Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
Thanks for your reply. > > I don't see why you're using a strong reference from the weak reference > inside your timer. You may be confusing ARC with that and your etc code. > Change your code to just use weakself rather than strongself when calling > updateUI. If there's a strong reference

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
it needs. Whereas you need the > service running your experiment and collecting data to stay running even if > the app displaying the results dies. When the user restarts the application > it connects to the still running service. > > Kevin > > Sent from my iPad > >> On

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
Thanks for your reply. If I understand you correctly, I am already doing all that by having one updateUI function per instrument, which does: self.myProperty = self->myStorageVariable on every variables. All updateUI selectors are sent to all instruments, at the same time, from the main

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
> On 17 sept. 2015, at 16:00, Jean Suisse <jean.li...@gmail.com> wrote: > > Thanks. But I already have one single timer dispatch source that updates all > the UI only by transferring double / int values from instance variables to > bound properties. The timer fires ev

Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
> On 17 sept. 2015, at 14:58, Jean Suisse <jean.li...@gmail.com> wrote: > > Thank you for this advice! > > My app has tabbed views that are implemented through the toolbar. When I > switch view, some memory indeed gets released. Sometimes a little, sometimes &g

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
nsider decoupling your > view-updating code like I suggested and you should see a significant change > without a hack. > -- > Gary L. Wade (Sent from my iPad) > http://www.garywade.com/ > >> On Sep 17, 2015, at 7:00 AM, Jean Suisse <jean.li...@gmail.com> wrote: >&g

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Jean Suisse
From what you write, that’s already what I do. > Just as I thought. You're overloading the system by tightly coupling your > model and your view. Let your instruments (models) do their work, and let > your controller consult them when ready and update the view; don't use your > controller to

Lost memory, GCD, dispatch sources, Cocoa bindings & User interface

2015-09-16 Thread Jean Suisse
more clues? Best Regards, Jean --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface

2015-09-16 Thread Jean Suisse
Hi Jonny, I also have a feeling the issue lies somewhere between the dispatch mechanism and Core Animation. I have seen some funny things too. For instance, I can’t run a serial queue for months. Some objects escape the autorelease pool created in the block (and seemingly encompassing

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-16 Thread Jean Suisse
> But I agree that this all (meaning the contortions to get updates onto the > main thread) seems like too much flash and not enough bang. The easiest way > would be to dispatch the original update code in blocks onto the main thread > asynchronously, thus serializing them and generating KVO

Creating pdf document

2014-08-16 Thread Jean Suisse
the process ? Is there some kind of template system that I can use, to visually build the document and define the position of the cotent? Should I build a view, then print it ? Is it more efficient to work directly on the pdf? Thank you for your help, Jean --- Jean Suisse Institut de

Re: Creating pdf document

2014-08-16 Thread Jean Suisse
Jonathan, Thanks for the great PDFKit layout recipe on cocoa-dev, today! I've done a number of things with PDFKit, but not the type of layout you described. So now, if I ever need to, I'll have a path to follow :-) Gratefully yours, Joel P.S. And thank you Jean Suisse for asking

Re: MODERATOR: (Temporary) End of Thread (was Re: I can't use man command to find c api manuals in Mavericks GM)

2013-10-22 Thread Jean Suisse
Actually, it sounds like it's available from the app store now. Jean On Oct 22, 2013, at 20:56 , Chris Hanson c...@me.com wrote: Until OS X Mavericks becomes available to everyone via the App Store, it's still under NDA. Once it's available it can be discussed here, until then it can't.

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

2013-07-23 Thread Jean Suisse
database dumped. In full. To the last bit of it. Three major players within a few days. What are the odds? On Jul 23, 2013, at 7:51 AM, Jean Suisse wrote: I believe we all got it. Personally, I'd rather like they take as much time as needed on this one. Same happened to ubuntuforums.org (http

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

2013-07-22 Thread Jean Suisse
I believe we all got it. Personally, I'd rather like they take as much time as needed on this one. Same happened to ubuntuforums.org (http://ubuntuforums.org/announce.html), which is still down, except that it seems the attacker(s) got the as salted hashes as well. On Jul 22, 2013, at 2:59 AM,

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

2013-07-21 Thread Jean Suisse
-today-for-everyone Have a nice sunday, Jean --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 On Jul 21, 2013, at 4:10 PM, Laurent Daudelin wrote: Is it only me or has developer.apple.com and devforums.apple.com been inaccessible

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

2013-07-21 Thread Jean Suisse
Indeed. You're right. I can't log in. Given their statement about expiring memberships, they are probably expecting the maintenance to take a long while. --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 On Jul 21, 2013, at 4:23 PM, David

Re: Jiggling Shadow Offset

2013-05-22 Thread Jean Suisse
performed on a regular up-to-date 10.8.3 MBP equipped with a 13 display. On May 21, 2013, at 3:44 PM, Jean Suisse wrote: Have you tried replacing shadow.shadowBlurRadius = 1.0; With: shadow.shadowBlurRadius = 0.5; It should work as expected. Jean On 22 mai 2013, at 00:11

Re: Jiggling Shadow Offset

2013-05-21 Thread Jean Suisse
Have you tried replacing shadow.shadowBlurRadius = 1.0; With: shadow.shadowBlurRadius = 0.5; It should work as expected. Jean --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 On 22 mai 2013, at 00:11, Seth Willits sli...@araelium.com

Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-15 Thread Jean Suisse
and expand HTML entities. For more involved work you could use NSXMLParser (with the “tidy” option) to parse the HTML into a DOM and then walk through that. —Jens --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-15 Thread Jean Suisse
Right. I dispatch the block on the main thread to solve the reentrancy issues as stated below. The serial queue is involved elsewhere. On 15 mai 2013, at 16:12, Ken Thomases wrote: On May 15, 2013, at 8:58 AM, Jean Suisse wrote: Thanks for your replies. Unfortunately, I can't easily avoid

Re: Getting a splash screen to show

2013-05-15 Thread Jean Suisse
-6255 cell: 612-803-6157 --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Getting a splash screen to show

2013-05-15 Thread Jean Suisse
On 15 mai 2013, at 17:59, Steve Mills wrote: On May 15, 2013, at 10:40:38, Jean Suisse wrote: In one application I have to display a splash screen while a poorly written framework (DAQmxBase from National Instruments) takes 6 to 11 seconds to initialize itself on the main thread. To do

Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-07 Thread Jean Suisse
Dear all, I am wondering: By any chance, could a call to [[NSAttributedString alloc] initWithHTML:dataUsingEncoding:documentAttributes:] lead to the event loop being run before the call returns? Jean --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-07 Thread Jean Suisse
loop (took me some time to get that). Of course the callback isn't thread safe… and never was designed to be since tied to the runloop. Until now... Jean On 8 mai 2013, at 00:40, Mike Abdullah wrote: On 7 May 2013, at 23:37, Jean Suisse wrote: Dear all, I am wondering: By any chance

Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?

2013-05-07 Thread Jean Suisse
: On May 7, 2013, at 5:37 PM, Jean Suisse wrote: By any chance, could a call to [[NSAttributedString alloc] initWithHTML:dataUsingEncoding:documentAttributes:] lead to the event loop being run before the call returns? Yes, it can. Under the hood, NSAttributedString is using WebKit

Re: Global (all-user) preferences for an application

2013-03-21 Thread Jean Suisse
Isn't resorting to a SMJobBless helper tool endowed with XPC capabilities just for storing a few must-be-global preference a little overkill? No, it's not overkill. If it seems like overkill to you, you should re-evaluate your need to set a few must-be-global preferences. Writing to

Re: Global (all-user) preferences for an application

2013-03-21 Thread Jean Suisse
On Mar 16, 2013, at 6:14 AM, Jean Suisse jean.li...@gmail.com wrote: To be user-friendly my app would need to use per-user preferences and global preferences (i.e. that applies to all users). The former I can manage. The later… well, short of coding a helper tool just for dealing

Re: Global (all-user) preferences for an application

2013-03-21 Thread Jean Suisse
No, it's not overkill. If it seems like overkill to you, you should re-evaluate your need to set a few must-be-global preferences. Writing to /Library/anything *is* a *big* deal. Sure seems to me like signed package com.foo.bar should be able to write into /Library/Application

Re: Global (all-user) preferences for an application

2013-03-18 Thread Jean Suisse
Normally for shared preference or data you would write to a shared file in /Library/Application Support/companyname/filename, but you have to take special care if you're sandboxing your app. Indeed. It would seem this requires to be root. Never write into your application bundle. It will

Global (all-user) preferences for an application

2013-03-16 Thread Jean Suisse
Dear All, To be user-friendly my app would need to use per-user preferences and global preferences (i.e. that applies to all users). The former I can manage. The later… well, short of coding a helper tool just for dealing with preferences storage, I have no idea on how to proceed. I would

Re: Fast user switching notifications

2013-03-16 Thread Jean Suisse
Thank you very much for your reply. It was really helpful. Jean There is an other way to track the current user: using the SystemConfiguration framework notification: http://developer.apple.com/library/mac/#qa/qa1133/_index.html -- Jean-Daniel

Fast user switching notifications

2013-03-11 Thread Jean Suisse
Dear All, There may be several approaches to solve the issue I am about to describe, either on the userland side or on the kernel side... or in-between, using a daemon. Current situation A bsd kernel extension communicates with a regular userland application (called theApp). The kext gathers

Re: Is it possible to detect a virtual machine

2013-03-02 Thread Jean Suisse
--- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 On 2 mars 2013, at 17:17, Kjell Nilsson kj...@oops.se wrote: Hi I am wondering if it is possible to detect if my Cocoa Application is running in a virtual machine like VMWare, VirtualBox

Re: Is it possible to detect a virtual machine

2013-03-02 Thread Jean Suisse
There is an article on code project that may be useful to you. Maybe you can adapt the code to suit your needs ? http://www.codeproject.com/Articles/9823/Detect-if-your-program-is-running-inside-a-Virtual --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB

Re: Tracking object references

2013-02-22 Thread Jean Suisse
I am not taking any sides here, but rather just interested in the topic at hand : Tracking object references. I had met an issue once that I never solved, which did require me to track down retain / release calls. What I did was to find in my code every explicit or implicit (@property

Re: OS X Collection Views videos?

2013-02-15 Thread Jean Suisse
Well, there are session 205 219 of WWDC2012, but I think both are exclusively about IOS6. Might be worth fast forwarding through them, thought. Jean On 15 févr. 2013, at 22:46, Rick Mann rm...@latencyzero.com wrote: Are there any WWDC videos covering Cocoa Collection Views (not iOS

Re: Best guess at expressing a string as a variable

2013-01-23 Thread Jean Suisse
a japanese user, I would expect your software to call the variable namae ]. IMHO the whole unicode character set is too large. Most language won't accept the largest part of the set. Jean --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302

Re: Printing a view + landscape printing

2013-01-22 Thread Jean Suisse
cocoa-...@esoteritech.com wrote: On Jan 21, 2013, at 8:17 AM, Jean Suisse wrote: I have a non-document based application to which I would like to add printing support. The main window (the one in the .xib created by default by Xcode) contains a split view. Currently, when printing, I

Re: Printing a view + landscape printing

2013-01-22 Thread Jean Suisse
On 22 janv. 2013, at 10:29, Graham Cox wrote: On 22/01/2013, at 7:50 PM, Jean Suisse wrote: Thank you very much for your reply. I can now print the right view. This view (Parent View) has only two large custom subviews in which I display graphics. AFAIK, fit-to-page is not a Cocoa

Re: How to avoid warning?

2013-01-22 Thread Jean Suisse
myObj = [[myClass alloc] performSelector(@selector(initWithManager:) withObject:self]; Would this work? You could do : id myObj =[myClass alloc]; myObj = [myObj performSelector(@selector(initWithManager:) withObject:myObj]; ___ Cocoa-dev

Re: How to avoid warning?

2013-01-22 Thread Jean Suisse
On 22 janv. 2013, at 18:34, Jean Suisse jean.li...@gmail.com wrote: myObj = [[myClass alloc] performSelector(@selector(initWithManager:) withObject:self]; Would this work? You could do : id myObj =[myClass alloc]; myObj = [myObj performSelector(@selector(initWithManager

Re: Best guess at expressing a string as a variable

2013-01-22 Thread Jean Suisse
in the UTF8 string) ? Jean --- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Printing a view + landscape printing

2013-01-21 Thread Jean Suisse
Dear All, I have a non-document based application to which I would like to add printing support. The main window (the one in the .xib created by default by Xcode) contains a split view. Currently, when printing, I get only the left pane of the split view (at best) or the control that has the

Re: Printing a view + landscape printing

2013-01-21 Thread Jean Suisse
Answering a part of my question: The menu item for printing needs to be re-wired to target the app delegate rather than the first responder. Now, I need to fix the page orientation and determine the size in points for the rendering. Any ideas ? On 21 janv. 2013, at 16:17, Jean Suisse

Re: Floating-point differences between ARM processors

2013-01-07 Thread Jean Suisse
On 8 janv. 2013, at 00:24, Rick Mann wrote: On Jan 7, 2013, at 11:22 , Greg Parker wrote: Note also that physics simulations will always need to be careful with the error inherent to finite precision floating-point arithmetic. IEEE specification of exact results for every operation

Re: Custom initWithFrame?

2013-01-03 Thread Jean Suisse
--- Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 ___ 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: blocks and id

2012-12-12 Thread Jean Suisse
On 12 déc. 2012, at 13:02, Mike Abdullah cocoa...@mikeabdullah.net wrote: Why does your code care if some unknown object is a block? This is a strong sign of a bad design. As far as I am concerned, I can think of at least two or three legitimate reasons to care wether an unidentified object

Re: How to implement readonly property

2012-12-08 Thread Jean Suisse
regarding how to add thread-safety to Singleton (and similar constructs) such that the resulting code is both reliable and efficient. DCLP = Double-Checked Locking Pattern Link: http://erdani.com/publications/DDJ_Jul_Aug_2004_revised.pdf Jean --- Jean Suisse Institut de Chimie

Re: Associate icon with file ext. / quick look

2012-10-22 Thread Jean Suisse
Thank you very much for this very clear explanation. I will look for the APIS to perform #1 and #2. Best regards, Jean On 18 oct. 2012, at 20:29, Seth Willits wrote: On Oct 18, 2012, at 4:04 AM, Jean Suisse wrote: Thank you for your reply. I am not familiar with the topic, but if I

Re: Associate icon with file ext. / quick look

2012-10-22 Thread Jean Suisse
Thank you for your reply. I will try that. Jean On 22 oct. 2012, at 18:21, Mike Abdullah wrote: On 22 Oct 2012, at 16:54, Sean McBride wrote: On Wed, 17 Oct 2012 13:38:45 +0200, Jean Suisse said: My scientific cocoa app (10.6-10.8) records acquired data from devices and store them

Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
Dear List, I have an old transparent NSPanel, which shape is only defined by the painted portion of the views it contains. The NSPanel has the following attributes set: ExcludedFromWindowsMenu:NO BackgroundColor: [NSColor clearColor] AlphaValue:1.0 HasShadow:YES useOptimizedDrawing:YES

Re: Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
Thomases k...@codeweavers.com wrote: On Oct 22, 2012, at 2:07 PM, Jean Suisse wrote: The issue: If the NSPanel opens with theView visible, when hiding it, theView's shadow remains. If the NSPanel opens with theView hidden, when displaying theView, theView doesn't get a shadow. It seems

Re: Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
On 22 oct. 2012, at 22:32, Jean Suisse jean.li...@gmail.com wrote: Thank you very much for your reply. Indeed, calling invalidateShadow did the trick. Now I need to find a way to be notified when [[view animator] dosomething] completes, otherwise the shadow takes the shape of the window

Associate icon with file ext. / quick look

2012-10-17 Thread Jean Suisse
Greetings, fellow developers on the lists, My scientific cocoa app (10.6-10.8) records acquired data from devices and store them in human-readable UTF8 text files that have specific extensions (different from .txt). I have two questions related to file extensions, default application, icons

Re: Dynamic Method Creation

2012-09-15 Thread Jean Suisse
Hi Steve, There seem to be a pattern in you methods: they all contain the name of a day of the week (monday) and you want them for all days. Then you could use macros. Example : #define SYTNHESIZE_WHATEVER_BUNCH_OF_FUNCTION_FOR_DAY(dayName) \ - (Shift *)

Re: Dynamic Method Creation

2012-09-15 Thread Jean Suisse
, autocompletion may not work. Cheers, Jean On 15 sept. 2012, at 11:11, Steve Steinitz wrote: Hi Jean, On 15 Sep 12, at 6:12pm, Jean Suisse wrote: There seem to be a pattern in you methods: they all contain the name of a day of the week (monday) and you want them for all days. Yes

Re: maintaining alpha value for intersecting lines?

2012-09-13 Thread Jean Suisse
It is the expected behavior, since the stacking of two partially transparent objects leads to a less transparent set. So I don't know what you want is possible. Are your lines straight ? If so, maybe you could try to draw one of them in two segments, to avoid the intersection (beware of the

Re: maintaining alpha value for intersecting lines?

2012-09-13 Thread Jean Suisse
, 2012 at 8:51 AM, Jean Suisse jean.li...@gmail.com wrote: It is the expected behavior, since the stacking of two partially transparent objects leads to a less transparent set. So I don't know what you want is possible. Are your lines straight ? If so, maybe you could try to draw one of them

Re: View based outline view and custom NSTableCellViews

2012-09-07 Thread Jean Suisse
Hi, Thank you for your reply. Yes, I have been thinking for a long time that I should take a really good look to bindings. I should invest some time in it. Thank you for your help. Cheers, Jean On 7 sept. 2012, at 11:00, Uli Kusterer wrote: Jean, I think your problem isn't the table,

View based outline view and custom NSTableCellViews

2012-09-06 Thread Jean Suisse
Hello, In the content view of the window of a freshly created NIB, I have a view-based outline view. The file owner is set to be MyWindowController. The outlineView is the standard, preconfigured setup, dragged from IB. Now, I would like to modify the default views provided in this standard

Re: NSData DataWithContentsOfURL within a protocol handler

2012-09-06 Thread Jean Suisse
Hi, Fritz Anderson is right. We can only agree. And recently, they made following Jens Alfke's advice incredibly easy. Just post a block to one of the available dispatch queues (not the one running on your main thread thought) and let it run its curse. Jean On 6 sept. 2012, at 16:36, Fritz

Re: View based outline view and custom NSTableCellViews

2012-09-06 Thread Jean Suisse
), the keypath (set by default to objectvalue, the key should be here), the model object, set to MyTableCellView, an other keypath, set to MyTextField. On 6 sept. 2012, at 20:34, Jean Suisse wrote: Thank you for your reply. Elaborate on not letting me do that. That is Ctrl + drag from

Re: NSData DataWithContentsOfURL within a protocol handler

2012-09-06 Thread Jean Suisse
Yes, I meant GCD. Sorry I missed the part where you told us about supporting 10.5 in your original message. On 6 sept. 2012, at 20:55, Dan S wrote: if you meant using the grand central dispatch, i think that only became available in 10.6, I need to support this for 10.5 On Thu, Sep 6,

Catching app-wide (system-wide) modifier keypress

2012-08-21 Thread Jean Suisse
Hello, In short : Is there a way to be notified of any change in the status of control keys (option, control, command, etc.) in a given NSWindowController, when another window of the app has the focus ? Long version (what I am trying to achieve) : The app I am currently working on is a

Focus issues with NSTableView in NSPanel

2012-08-21 Thread Jean Suisse
will be required to select the item. This two-click selection is inconvenient. I have tried to answer yes to acceptsFirstMouse in the content view, the scroll view, and the table view without success. Anyone knows how to deal with this ? Best regards, Jean Jean Suisse Institut de Chimie Moléculaire de

Re: Focus issues with NSTableView in NSPanel

2012-08-21 Thread Jean Suisse
Well, apparently Glen Low did post a similar question, back in 2007. http://lists.apple.com/archives/cocoa-dev/2007/Jun/msg00897.html Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 U.F.R. Sciences et Techniques, Bâtiment Mirande Aile B, bureau 411 9

Re: Focus issues with NSTableView in NSPanel

2012-08-21 Thread Jean Suisse
, the window could return YES from becomesKeyOnlyIfNeeded, and it should also work. -corbin On Aug 21, 2012, at 5:48 AM, Jean Suisse jean.li...@gmail.com wrote: Hello, I have an NSPanel window that contains an NSTableView with the usual setup (NSPanel - content view (NSView

Re: Focus issues with NSTableView in NSPanel

2012-08-21 Thread Jean Suisse
. (It worked for me) Cheers Jean Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 U.F.R. Sciences et Techniques, Bâtiment Mirande Aile B, bureau 411 9, avenue Alain Savary — B.P. 47870 21078 DIJON CEDEX T: +333-8039-9037 F: +339-7223-9232 E: jean.sui...@u

Re: How make iPhone HOT (yes, increase the temperature)??

2012-08-10 Thread Jean Suisse
actually available for their operation and drains their batteries. Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302 U.F.R. Sciences et Techniques, Bâtiment Mirande Aile B, bureau 411 9, avenue Alain Savary — B.P. 47870 21078 DIJON CEDEX T: +333-8039-9037

Re: Equation style display

2012-07-04 Thread Jean Suisse
uses one for their Mathematics QA site that seems to work pretty well. However, note that it's not instant. -- Chris On Jul 2, 2012, at 8:55 AM, Jean Suisse jean.li...@gmail.com wrote: Dear all, I was wondering if there is a way to get the pretty formatted version of an equation

Equation style display

2012-07-02 Thread Jean Suisse
Dear all, I was wondering if there is a way to get the pretty formatted version of an equation (from an NSString) to display within a view (similar to the way Graph.app displays it). The question is open, any means is acceptable (if not too far-fetched). I know I can get a .png version using a

Re: Equation style display

2012-07-02 Thread Jean Suisse
On Jul 2, 2012, at 9:55 AM, Jean Suisse wrote: Dear all, I was wondering if there is a way to get the pretty formatted version of an equation (from an NSString) to display within a view (similar to the way Graph.app displays it). The question is open, any means is acceptable (if not too far

Re: Equation style display

2012-07-02 Thread Jean Suisse
in an equation. On 2 juil. 2012, at 18:23, Jean-Daniel Dupas wrote: Le 2 juil. 2012 à 17:55, Jean Suisse a écrit : Dear all, I was wondering if there is a way to get the pretty formatted version of an equation (from an NSString) to display within a view (similar to the way Graph.app

Re: Equation style display

2012-07-02 Thread Jean Suisse
Well, it seems that all paths leads towards Webkit and MathML… which unfortunately requires some parsing / rewriting, even for simple equations… Thank you Jens. Best regards, Jean On 2 juil. 2012, at 18:45, Jens Alfke wrote: On Jul 2, 2012, at 8:55 AM, Jean Suisse wrote: I'm pretty

Re: DataSource modified while TableView is displaying data

2012-04-27 Thread Jean Suisse
. Is there some way to prevent thread switching for a short time ? Do you know an other way to deal with the present issue (alteration of the dataSource of an NSTableView not performed on the main thread) ? Jean On 26 avr. 2012, at 21:47, Corbin Dunn wrote: On Apr 26, 2012, at 3:23 AM, Jean Suisse jean.li

Re: DataSource modified while TableView is displaying data

2012-04-27 Thread Jean Suisse
, 2012, at 3:42 PM, Jean Suisse wrote: So if I understand you correctly alteration of the dataSource should always be performed on the main thread. [implied: because requests for redraw or similar that do not come from my code will always run on the main thread. Is that right ?]. Done

Re: DataSource modified while TableView is displaying data

2012-04-26 Thread Jean Suisse
Dear Peter, Thank you for your reply. Here is the requested code (see below). After more investigations, I would like to take back a previous statement, that the tableview was perfectly aware that the number of rows in the DS was changed. This is due to my inexperience in stepping through the

Concurrency: DataSource modified while TableView is displaying data

2012-04-25 Thread Jean Suisse
Hi All, I have an NSTableView whose DataSource and delegate is a custom controller NSTableViewDataSource, NSTableViewDelegate holding an NSMutableArray (containing a list of Task/job objects). The tableView is used to display Tasks waiting to be executed. When activated, the Task is requested

Re: What makes OS X generate a hang report?

2012-01-12 Thread Jean Suisse
Hi ! Well, I am no expert, so I can't answer your question. But I do have a suggestion (fix): have you tried loading your QuickTime movie on an other thread, and then attaching it to your main thread ? (you have to detach it first). Jean On 11 janv. 2012, at 21:56, Mark Woods wrote: Does