Re: Change NSCursor globally

2017-02-15 Thread Colas B
nt *)event{    [self.cursorForIPhone6 set];} - (void)mouseMoved:(NSEvent *)event{    [self.cursorForIPhone6 set];} - (void)cursorUpdate:(NSEvent *)event{    [self.cursorForIPhone6 set];} Colas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Change NSCursor globally

2017-02-06 Thread Colas
to revert back to the usual behaviour. Thanks, Colas ___ 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

Setting the contentOffset of a UICollectionView during update

2015-10-18 Thread Colas B
I have a collection view, with a custom layout, whose layout is changing when one taps on a cell: the cell becomes bigger. The layout is not a sublass of UIViewCollectionViewFlowLayout but directly of UICollectionViewLayout. I update the layout with [self.collectionView performBatchUpdates:      

Re: Parent/child view controllers: when shall we use it?

2015-05-04 Thread Colas
Thanks Roland for your answer. Sorry for the unclarity of my question. You completely answered my question. I wondered about this point because I come from the OSX development and there is not (as far as I know) this concept of child/parent. Colas Le 1 mai 2015 à 06:47, cocoa-dev-requ

Parent/child view controllers: when shall we use it?

2015-04-30 Thread Colas B
for UINavigationController, TabBar, ... or if I want to create such a general class. So, am I wrong or am I right ? Thanks ;-)Colas  ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Serious bug for UICollectionView

2014-11-07 Thread Colas B
Dear cocoa-dev, I am facing the following bug with `UICollectionView` in the **horizontal scrolling mode** (`iOS 8`, `iOS 7`, the only ones I have tested). I would like to have your views on this bug and on how I could elegantly fix it (and possibly fix it so that when Apple fixes it, my fix

Advice for an hazardous bug with nested contexts in core data

2014-07-09 Thread Colas B
of the MOC      */     _managedObjectContext = theMainMOC ; } Thanks ! Colas ___ 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

Advice for error NSBundle was released too many times

2014-04-22 Thread Colas
0x7fff9217bc04; NSLog Here is a link to a image of the stack : http://s21.postimg.org/jm03t68kn/Capture_d_cran_2014_04_21_16_08_56.png If you have any guess on what’s going on and/or any advice, THanKS ;-) !!! Colas ___ Cocoa-dev

Re : Re: cocoapods: Problem with loading nib for a NSWindowController

2014-04-19 Thread Colas B
Hi and thanks for your answers.br/br/It was a problem with cocoapods. I don't know why but even after reinstalling, the script add Pods resources was not in the build phases.br/br/I added it manually, and now it works. ___ Cocoa-dev mailing list

cocoapods: Problem with loading nib for a NSWindowController

2014-04-18 Thread Colas
real project, I have an error : -[MyCBDLockManager loadWindow]: failed to load window nib file 'MyCBDLockManager’. Thanks, Colas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Colas B
Dear cocoa-dev, I am would like to launch a binary as if I launched it via terminal. I tried the following but it is not working.      NSTask * myTask = [[NSTask alloc] init];     NSArray * arguments = @[@-c, @-l, @'/usr/bin/pico /Users/colas/myfile.txt'];     [myTask

Re: NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Colas B
OK. But without the simple quotes, it also fails. With the quotes, the error is /bin/bash: pico /Users/colas/myfile.txt: No such file or directory Without the quotes, the error is Error opening terminal: unknown. Thanks! Le Lundi 14 avril 2014 16h19, Jerry Krinock je...@ieee.org a écrit

Re: NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Colas
Try putting /usr/bin/pico /Users/colas/myfile.txt into separate items in the argument NSArray. I find the man page ambiguous, and I lack direct experience, but that may be what bash expects. It is not working, unfortunately. I can’t guarantee that this will solve the larger

Re: NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Colas
Le 14 avr. 2014 à 17:07, Bryan Vines bkvi...@me.com a écrit : Hi Colas, Pico is an interactive text editor. I don’t think NSTask is going to give you much opportunity to interact with it. Are you using Pico as an example, or are you actually trying to launch Pico? If you really

Re: NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Colas
much !! Le 14 avr. 2014 à 17:43, Bryan Vines bkvi...@me.com a écrit : Colas, If my previous code snippet doesn’t work with pdflatex, NSTask has a -setEnvironment method; it may allow you to set your task’s environment variables. — Bryan Vines On Apr 14, 2014, at 10:40 AM, Colas

Re: NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Colas
file.gnuplot' manually on the respective gnuplot file.. (I give the option —shell-escape to pdflatex) The error I get in xcode is [;sh: gnuplot: command not found. Thanks also for the idea of -setEnvironment. I will try. Le 14 avr. 2014 à 17:43, Bryan Vines bkvi...@me.com a écrit : Colas, If my

Re: NSTask: how to launch a binary as if I launched it via terminal?

2014-04-14 Thread Colas
Thanks to everyone for helping !!! Using setEnvironment made it easily. I was looking for a complicated solution when the solution was not so difficult. Le 14 avr. 2014 à 17:59, Colas colasj...@yahoo.fr a écrit : Thanks also for the idea of -setEnvironment. I will try

Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-04-12 Thread Colas
I keep the information of what needs to be saved in MyAssistanForSaving and when it is time to save (in my case I always save immediately when one attaches new files), I write in my file package with the help of NSFileManager in the -writeToURL... Method (I don't remember the précis name right

NSTask: program launching another program, potential problem with path: how to do?

2014-04-10 Thread Colas B
] ; I get the following error `sh: myauxprogam: command not found` If I create a symbol link in `path1` to `myauxprogram`, the problem is the same. How is it that when I execute the program in a terminal, everything goes well but via NSTask it fails? How can I solve this problem? Thanks, Colas

Re: NSTask: program launching another program, potential problem with path: how to do?

2014-04-10 Thread Colas B
is pdflatex (with the -shell-escape option) and myauxprogram is gnuplot. Colas Le Jeudi 10 avril 2014 16h32, Jens Alfke j...@mooseyard.com a écrit : On Apr 10, 2014, at 6:23 AM, Keary Suska cocoa-...@esoteritech.com wrote: This is more likely a shell scripting issue, rather than am NSTask

Re : Re: NSTask: program launching another program, potential problem with path: how to do?

2014-04-10 Thread Colas B
I am not an unix-ey guy... br/br/I don't specify explicitly a bash when I run my program (with NSTask) : I just give the path to the program. If I discover the path to the shell being used, does it mean that what used to be the path of my NSTask will become an argument?br/br/About path and

Re : Re: NSTask: program launching another program, potential problem with path: how to do?

2014-04-10 Thread Colas B
No, it is Mach-O 64-bit executable ___ 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 : Re: Removing a file via NSFileWrapper

2014-03-31 Thread Colas B
Thanks for your help.br/I guess encountering such situations is part of the job... And I'm still learning it ;-)br/br/Colasa href=https://overview.mail.yahoo.com?.src=iOS;br/br/Envoyé depuis Yahoo Mail pour iPad/a ___ Cocoa-dev mailing list

Re: Removing a file via NSFileWrapper

2014-03-30 Thread Colas B
with a NSFileWrapper via the write... method. Do you understand this ? The document of  NSFileWrapperWritingAtomic does not mention that. I think I am going to manage the contents of the attached files without NSFileWrapper. Thanks Colas Le Samedi 29 mars 2014 17h51, Mike Abdullah mabdul

Re: Removing a file via NSFileWrapper

2014-03-30 Thread Colas B
       d) this time, if I check again the content of myFolder.myApp, I don't see file2 (but file1 is still there) What does “check again” mean? Did you close the window showing the contents of myFolder.myApp, then open another one? Yes, it is what I mean. I don’t understand this.

Re: Removing a file via NSFileWrapper

2014-03-30 Thread Colas B
name already exists. UserInfo=0x61069c80 {NSFilePath=/Users/colas/Desktop/folderName, NSUnderlyingError=0x61041e60 The operation couldn’t be completed. File exists}. Le Dimanche 30 mars 2014 23h58, Quincey Morris quinceymor...@rivergatesoftware.com a écrit : On Mar 30, 2014, at 14:38

Removing a file via NSFileWrapper

2014-03-29 Thread Colas B
experience with NSFileWrapper, more information about the options of the writeToUrl:... command would be appreciated. Indeed, if I don't use the NSFileWrapperWritingAtomic, I have an error : can't write because the file already exists. Thanks to all !! Colas

Re : Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-26 Thread Colas B
Yes indeed, br/br/I'm using this method to manage additional data in a document.br/Want you say Mike frightens me a little bit, I would not want all my memory used my extra files when I save the document.br/br/Which options should I use if I want the file wrapper to read/write as less as

Re : Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-26 Thread Colas B
What is the difference between writing a hard link and just ignore this particular file that has not changed ? If the file is already there, where the hard link will be created?a href=https://overview.mail.yahoo.com?.src=iOS;br/br/Envoyé depuis Yahoo Mail pour iPad/a

Write with NSFileWrapper vs. copy with NSFileManager

2014-03-25 Thread Colas B
on the values of options; what would be the best choice for options here?)? Again, I ask this question in order to understand better NSFileWrapper. I see that I have the choice in my code to use one or the other. I guess the answer might involve considerations about hard links.  Thanks, Colas

Re: Re : Re: Saving while opening with NSDocument

2014-03-24 Thread Colas B
is safer I think. I don't have to deal with the case where no nib is loaded. It works well. Thanks to all for their help. Colas Le Mercredi 19 mars 2014 23h14, Colas B colasj...@yahoo.fr a écrit : Thanks for this very complete answer. If it can help, I can tell that I also tried to put

Re : Re: Saving while opening with NSDocument

2014-03-19 Thread Colas B
I agree with you that the best place for this is NSDocumentController.br/br/I will try with 'withDelay:0' and will let you know if it works. If you have a link for information on runloops (what is it, how it works, etc.), I am interested.br/br/Thanks for your interest and your

Re : Re: Saving while opening with NSDocument

2014-03-19 Thread Colas B
Thanks for this very complete answer.br/br/If it can help, I can tell that I also tried to put the 'saveDocument:' in the 'didLoadNIb' (without the 'afterDelay') and it also create deadlock. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Saving while opening with NSDocument

2014-03-18 Thread Colas B
: Why do I want to do that? When a document is opened, sometimes some corrupted data needs to be fixed. I do it, but I want to save these fixes. So that the user won't remark anything. PPS: My document handles additionalData (file wrapper), but this should not change anything. Thanks Colas