Re: Login item not hidden

2011-06-10 Thread Leonardo
I supposed that, so, ok I will find a workaround. Thanks. You know a lot of things! Regards -- Leonardo > Da: Jens Alfke > Data: Thu, 9 Jun 2011 10:43:42 -0700 > A: Leonardo > Cc: Cocoa Developers > Oggetto: Re: Login item not hidden > > > On Jun 9, 2011, at 4:10 AM, Leonardo wrote: > >>

Re: iOS: antialiasing text

2011-06-10 Thread David Duncan
On Jun 9, 2011, at 7:10 PM, Graham Cox wrote: > On further investigation, it seems as if the problem is not in the rendering > of the text into the offscreen bitmap context, but the later scaling down of > that image in a CALayer. > > On the Mac, when I set the layer's minificationFilter proper

Building, installing, and testing drivers

2011-06-10 Thread Tom Jeffries
I'm building a MIDI-in driver that will be bringing in MIDI data from Wifi, and I'm having trouble figuring out certain configuration details. I started with the SampleUSBDriver and eliminated the USB code and got it compiling correctly. However, the documentation seems to be based on earlier ver

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen

2011-06-10 Thread Jodischlange
I tried around a bit more and still can't get it to work. I will have a look at the MyNetwork Library you recommended now. Still what I'm confused about: Am 2. juni 2011 um 20.40 schrieb Jens Alfke: > On Jun 2, 2011, at 2:10 AM, jodischla...@gmx.de wrote: >> >> I wanted to have a very basic T

changing file name when copying a file in the same directory

2011-06-10 Thread Sandeep
Hi All, I am trying to implement a functionality similar to one that we see in the Finder. can some one please let me know what are the methods that get called. I am looking at the finder functionality where in if a user copies a file in the same directory then a new file is created with the su

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen

2011-06-10 Thread Jens Alfke
On Jun 10, 2011, at 11:39 AM, jodischla...@gmx.de wrote: > 1. There an NSStream event "NSStreamEventEndEncountered". I would have > expected to be sent this event when the Stream created from a piece of data > reaches the end of that data. But okay, you said that one has to close the > stream

Re: changing file name when copying a file in the same directory

2011-06-10 Thread Jens Alfke
On Jun 10, 2011, at 12:07 PM, Sandeep wrote: > where in if a user copies a file in the same directory then a new file is > created with the sufix Copy 1, Copy 2, Copy3 etc. can someone please let me > know if we can implement the same using NSFileManager or if there are any > methods that help

Re: changing file name when copying a file in the same directory

2011-06-10 Thread Jerry Krinock
You should be able to figure it out by modifying my code here which adds tildes or hashes. This is in a category of NSString. - (NSString*)pathSuffixedWithString:(NSString*)suffix { NSString* newPath = self ; do { newPath = [[[newPath stringByDeletingPathExtension] st

NSFileHandle and Data Integrity

2011-06-10 Thread Tony S. Wu
Hi, I have a simple client-server application. I use NSFileHandle to handle the communication between client and server. However, NSFileHandle doesn't seem to have any sort of guarantee on data integrity because when I try to send large amount of data over the network, packets will get dropped

Re: changing file name when copying a file in the same directory

2011-06-10 Thread Jens Alfke
On Jun 10, 2011, at 12:51 PM, Jerry Krinock wrote: >do { >newPath = [[[newPath stringByDeletingPathExtension] >stringByAppendingString:suffix] >stringByAppendingPathExtension:[self pathExtension]] ; >} while ([[NSFileManager defaultManager] fileExistsAtPath

Re: NSFileHandle and Data Integrity

2011-06-10 Thread Jens Alfke
On Jun 10, 2011, at 2:16 PM, Tony S. Wu wrote: > I have a simple client-server application. I use NSFileHandle to handle the > communication between client and server. However, NSFileHandle doesn't seem > to have any sort of guarantee on data integrity because when I try to send > large amount

popUpStatusItemMenu - how to highlight the NSStatusItem

2011-06-10 Thread Martin Batholdy
Hi, I have a NSStatusItem in the systemStatusBar. Now I would like to have the possibility to show the menu of the StatusItem with a keyboard shortcut. I can do this with the popUpStatusItemMenu-method of the NSStatusItem class. However by using this method, the status item in the statusbar does

setLineWidth: in NSBezierPath no effect in PDF Document?

2011-06-10 Thread Laurent Daudelin
Not sure if I'm missing something but when creating ink PDF annotations in a document, it seems that no matter what I set the line width to with setLineWidth:, the line width of the ink annotation always appears as being 1.0. Anybody knows if specifying a thicker line in an NSBezierPath would ha

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen

2011-06-10 Thread Jodischlange
Am 10.06.2011 um 21:19 schrieb Jens Alfke: > On Jun 10, 2011, at 11:39 AM, jodischla...@gmx.de wrote: > >> 1. There an NSStream event "NSStreamEventEndEncountered". I would have >> expected to be sent this event when the Stream created from a piece of data >> reaches the end of that data. But o

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen

2011-06-10 Thread Jens Alfke
On Jun 10, 2011, at 4:55 PM, jodischla...@gmx.de wrote: > Thank you for your patience, but I think I understand the difference. The > thing is that I wanted to make a TCPServer that sends a piece of NSData to > any client that connects. Thus my plan was to create an NSInputStream via > [NSInpu

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen

2011-06-10 Thread Jodischlange
Am 11.06.2011 um 02:13 schrieb Jens Alfke: > > On Jun 10, 2011, at 4:55 PM, jodischla...@gmx.de wrote: > >> Thank you for your patience, but I think I understand the difference. The >> thing is that I wanted to make a TCPServer that sends a piece of NSData to >> any client that connects. Thus

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen

2011-06-10 Thread Jens Alfke
On Jun 10, 2011, at 5:35 PM, jodischla...@gmx.de wrote: > I want the TCPServer to return some data block to each client that connects. > I basically just want to put the bytes of the NSData object one after another > on the outputstream that is connected to the socket. > Problem: I would have t

ObjC stdin equivalent? and other questions

2011-06-10 Thread William Squires
Hi! 1st question: In regular C, you have the functions for reading/writing to stdio; printf(), scanf(), etc... In C++, you have cin/cout and the overridden '>>' and '<<' operators. What does ObjC have (besides NSLog() anyway) that C/C++ doesn't? I'm guessing... zilch. You have to use the

Re: ObjC stdin equivalent? and other questions

2011-06-10 Thread Dave DeLong
On Jun 10, 2011, at 7:56 PM, William Squires wrote: > 1st question: > In regular C, you have the functions for reading/writing to stdio; > printf(), scanf(), etc... > In C++, you have cin/cout and the overridden '>>' and '<<' operators. > What does ObjC have (besides NSLog() anyway) that C/C

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen

2011-06-10 Thread Ken Thomases
On Jun 10, 2011, at 7:35 PM, jodischla...@gmx.de wrote: > I want the TCPServer to return some data block to each client that connects. > I basically just want to put the bytes of the NSData object one after another > on the outputstream that is connected to the socket. > Problem: I would have to

Re: ObjC stdin equivalent? and other questions

2011-06-10 Thread Sherm Pendley
On Fri, Jun 10, 2011 at 10:56 PM, William Squires wrote: > Hi! > 1st question: >  In regular C, you have the functions for reading/writing to stdio; > printf(), scanf(), etc... >  In C++, you have cin/cout and the overridden '>>' and '<<' operators. >  What does ObjC have (besides NSLog() anyway

Re: ObjC stdin equivalent? and other questions

2011-06-10 Thread Ken Thomases
On Jun 10, 2011, at 9:56 PM, William Squires wrote: > 1st question: > In regular C, you have the functions for reading/writing to stdio; > printf(), scanf(), etc... > In C++, you have cin/cout and the overridden '>>' and '<<' operators. > What does ObjC have (besides NSLog() anyway) that C/C+

Re: ObjC stdin equivalent? and other questions

2011-06-10 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/10/11 7:56 PM, William Squires wrote: > Hi! 1st question: In regular C, you have the functions for > reading/writing to stdio; printf(), scanf(), etc... In C++, you have > cin/cout and the overridden '>>' and '<<' operators. What does ObjC > have

Re: ObjC stdin equivalent? and other questions

2011-06-10 Thread Chris Hanson
On Jun 10, 2011, at 7:56 PM, William Squires wrote: > Hi! > 1st question: In the future, please just start a separate thread for separate questions. Thanks! -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: changing file name when copying a file in the same directory

2011-06-10 Thread Mike Abdullah
On 10 Jun 2011, at 14:28, Jens Alfke wrote: > > On Jun 10, 2011, at 12:51 PM, Jerry Krinock wrote: > >> do { >> newPath = [[[newPath stringByDeletingPathExtension] >> stringByAppendingString:suffix] >> stringByAppendingPathExtension:[self pathExtension]] ; >> } whil

Printing graphics plus text

2011-06-10 Thread Scott Steinman
Please forgive me if my question is stupid. It's frustrating being a Cocoa noobie after 30 years of scientific programming, but I'm doing my best to learn. I'm working on an application that displays a diagram I have drawn in a custom view to represent data input by the user. I'd like to print