Re: How to check if file exists?

2014-05-11 Thread René v Amerongen
I really hate it when a file is read for any reasons without reading it. Some app's do this, then the file info shows that the file is read at that time, without that I opened it. Specially when I have in the finder a smart folder with read today. my suggestion. So is it really only to know for

Re: Test for TCP port

2011-04-09 Thread René v Amerongen
I remember that I did look into Smallsockets, but never used it. But maybe perfect for you. HTH Op 9 apr 2011, om 05:04 heeft Heizer, Charles het volgende geschreven: > Thanks, > This is what I kind of suspected. Are there any wrappers around bsd socket to > make it easier? > > Thanks, > Cha

Re: NSClassDescriptionNeededForClassNotification

2011-03-22 Thread René v Amerongen
Hi, I have never use it, and never look into this. Maybe a class method instead. Op 21 mrt 2011, om 09:45 heeft Kevin Bracey het volgende geschreven: > Hi there, > > I hope that I could "register class descriptions lazily", I like doing most > things lazily. > > But I can't find where or ho

Re: How to create secondary Thread that listens to event taps?

2010-10-20 Thread René v Amerongen
Having something similar a few days back and did also use the second thread, I am curious and looking for a sample or at least more information how to do the custom CFRunLoopSource solution. Any info on that for us? Thanks in advance. René Op 20 okt 2010, om 07:44 heeft Chris Hanson het volgen

Solved!! NSLog issue with NSTask Bash commands Re: Solved BUT How to get NSLog back - Re: NSTask and piped commands -

2010-05-19 Thread René v Amerongen
Op 19 mei 2010, om 11:44 heeft René v Amerongen het volgende geschreven: >> > > Because I didn't see any result, I noticed that this happened only when I use > /bin/sh -c. > > My code was just a short piece in main as test bed, and did trust my NSLog > output wh

Solved BUT How to get NSLog back - Re: NSTask and piped commands -

2010-05-19 Thread René v Amerongen
Op 19 mei 2010, om 03:37 heeft Greg Guerin het volgende geschreven: > appledev wrote: > >>arguments = [NSArray arrayWithObjects: @"-c", @"/bin/df -k| /usr/bin/grep >> /dev/ | /usr/bin/awk '{print $1 $4 $5 $6;}'",nil]; > > > Your awk syntax is somewhere between quirky and wrong. Since you

Re: NSTask and piped commands

2010-05-18 Thread René v Amerongen
Op 18 mei 2010, om 21:48 heeft Stephen J. Butler het volgende geschreven: >> > > Depending on what information you need, I'd use [NSWorkspace > mountedLocalVolumePaths] and then [NSFileManager > attributesOfFileSystemForPath:error:]. > Didn't have NSWorkspace some bugs with giving the right in

Re: NSTask and piped commands

2010-05-18 Thread René v Amerongen
Thanks for this. Your right about this idea. I will check it out. René Op 18 mei 2010, om 22:34 heeft Alastair Houghton het volgende geschreven: > On 18 May 2010, at 20:33, appledev wrote: > >> [task launch]; >> >> [task waitUntilExit]; >> >> NSData *data; >> result = [file read

Re: NSTask and piped commands

2010-05-18 Thread René v Amerongen
Sorry for the late reaction. I did check every ten minutes Cocoabuilder and sometimes my mail, but I see that there where all ready replies before I got my own posting. Op 18 mei 2010, om 22:13 heeft Jens Alfke het volgende geschreven: >> I dont want to use a call to a bash script, because of

Re: Specify "Sent Action on" Behavior of NSTextField

2010-05-18 Thread René v Amerongen
In IB, move with the mouse over the popup item. Op 18 mei 2010, om 10:21 heeft Dong Feng het volgende geschreven: > There is a option on IB to specify if an NSTextField "Sent Action on > Enter Only" or "Sent Action on Editing." How to set the option > programmatically? > > Thanks, > Dong > _

Conversion of CFSocketCreateWithNative -> NSSocketPort

2009-11-27 Thread René v Amerongen
Hello, I' am busy to make an old app up to date and want to use 100% 10.6 cocoa. I have +75% percent done, but there is something what I can't figure out. Network calls are now using NSSocketPort, except a few that uses a fileHandle or fileDescriptor to get an IP address, like: (NSFileHandle *)

Re: document-based application

2009-09-07 Thread René v Amerongen
Hi, did you look at cocoadev/forum? If you want actualy the same, there is a disscusion about this. HTH Op 7 sep 2009, om 07:24 heeft Oftenwrong Soong het volgende geschreven: Hi All, In my doc-based app, I need to initially display a startup window instead of a new empty document. Its

Re: UITableView "port" to Mac?

2009-04-02 Thread René v Amerongen
Hi On 2 apr 2009, at 08:46, Seth Pellegrino wrote: Hello list, I'm looking for something similar to UITableView for Mac development. NSCollectionView seems a little like what I'd want, what is your definition of 'a little like what I'd want'. What do you need? but the API on UITableV

Re: Read lines from very large text file

2009-02-07 Thread René v Amerongen
Thus the warning: if a file disappears while you have it memory mapped, and you try to access it, you will crash. Does this mean that we should check every time the existence of the file before we try to read anything from the memory mapped file? RvA _

Re: Opening Symbolic Links

2009-01-26 Thread René v Amerongen
On 26 jan 2009, at 07:07, Gerriet M. Denkmann wrote: Am I doing something wrong? nop Does anybody seen this strange behaviour as well, or is it only me? Not only you. Wii have the same behaviour. Even when you try to open it in textedit it doesn't work. The links doesn't know what the o

Re: Basic: How to go about implementing such a view?

2009-01-06 Thread René v Amerongen
Hi, On 31 dec 2008, at 05:35, Matt Rajca wrote: 3. Should I put the notes (colorful rectangles) each in a separate view (or Core Animation layer), or is it effective to just draw them directly in the main view (same view in which the rows are drawn)? I am eventually going to want to resiz

scheme High Level Class and representations

2008-12-15 Thread René v Amerongen
Hi, What are your idea's to solve this the right way. I have a class ( high level ) that receives data. The type of data is unknown and is only recognisable by an included header inside the data. This header could be 16 bytes or 32 bytes long. Depending on this header I will call a worker.

Re: Custom NSTableView cells

2008-12-10 Thread René v Amerongen
On 10 dec 2008, at 02:40, Graham Cox wrote: I could use a little guidance, please, on customizing cells for display in an NSTableView. My table has but one column, but each cell in that column is made up of 2 or more views. I think I have what I need as far as the cells go, but it's fee

reorderable ( outline | collection ) view

2008-11-13 Thread René v Amerongen
Hi all, Not yet a complete cocoa question, but I did see last week somewhere in an app an one column view. In this view there where other views vertical drag-able/reorder-able. When you did drag a view you saw the background getting solid grey and the dragging view was getting transparent, t

Re: Apple Developer Forums

2008-10-24 Thread René v Amerongen
On 24 okt 2008, at 18:24, Eric Gorr wrote: On Oct 24, 2008, at 12:15 PM, Randall Meadows wrote: It looks like we're legit to discuss now! I wonder if there will be a corresponding iphone-dev mailing list...? I hope not, there is many overlaps between the al

Re: Designing reports in Cocoa apps

2008-10-19 Thread René v Amerongen
Hi, About, On 19 okt 2008, at 01:51, Kyle Sluder wrote: This method is also usually unusable for any sort of charting or other non-traditional reporting. What I did, to test something, was using NSimage to create an image. Save the representation, as jpeg f.e, in tmp and then read it back

Re: lauchd and svnserve

2008-09-24 Thread René v Amerongen
Arguments /usr/local/bin/svnserve --inetd --root=Volumes/Development_Current/_CodeRepositorystring> ServiceDescription Subversion Standalone Server Sockets Listeners SockFamily IPv4 SockServiceName svn SockType stream

lauchd and svnserve

2008-09-24 Thread René v Amerongen
Dear list Not sure where to put this question, but I did see here more of launchd questions. I got svnserve running with the following plist. http://www.apple.com/DTDs/PropertyList-1.0.dtd "> KeepAlive PathState /

Re: Cocoa debug/release setting

2008-09-20 Thread René v Amerongen
Didn't use that before. In the release mode the breakpoint did finally stop for now (to). I will close down and start fresh tomorrow, maybe it works out well. Thanks René Op 20 sep 2008, om 16:56 heeft Fritz Anderson het volgende geschreven: On 20 Sep 2008, at 8:33 AM, René v Amerongen wro

Cocoa debug/release setting

2008-09-20 Thread René v Amerongen
Hi List, I have a small irritating problem. If I use debug as configuration I cant use breakpoints. If I select release then my breakpoints are working. I dont see what I did change compared with my former project and cant find any particulair in my settings. Of course maybe I did overlook so

Re: creating files to write data to?

2008-08-17 Thread René v Amerongen
Hi, I couldn't believe that you didn't get any warning so I did copy your code into xcode. Voila, I do get warnings! My suggestion is read again the comments carefully and check the documentation. It was mentioned before that [fh writedata ... needs a NSData ( or NSMutableData ) and not

Re: CoreData local and on server sync

2008-06-21 Thread René v Amerongen
Op 22 jun 2008, om 00:18 heeft Jens Alfke het volgende geschreven: On 21 Jun '08, at 3:33 AM, René v Amerongen wrote: Now I have to make a similar database but then that the Laptop users can work offline. I would like to have them sync their local copy with the server when the

CoreData local and on server sync

2008-06-21 Thread René v Amerongen
Dear All, Does someone has any experience about having a local data store which is syncing wit the server store using Coredata? We have a few 300+ laptop users and 50+ desktop users who are working in the same database. Now I have to make a similar database but then that the Laptop users