Re: Generating variable frequency tones

2010-09-10 Thread vincent habchi
Le 9 sept. 2010 à 21:58, Remco Poelstra a écrit : > I'm looking for some way to generate a tone that resembles the sound of an > instrument. I need precise control of the base frequency (pitch). I'm > wondering what would be the best way to generate it on an iPhone. > Store a file with a know fr

Re: Generating variable frequency tones

2010-09-10 Thread Kyle Sluder
On Sep 10, 2010, at 1:19 AM, vincent habchi wrote: > Le 9 sept. 2010 à 21:58, Remco Poelstra a écrit : > >> I'm looking for some way to generate a tone that resembles the sound of an >> instrument. I need precise control of the base frequency (pitch). I'm >> wondering what would be the best wa

Re: Generating variable frequency tones

2010-09-10 Thread Remco Poelstra
Op 9 sep 2010, om 21:58 heeft Remco Poelstra het volgende geschreven: > I'm looking for some way to generate a tone that resembles the sound of an > instrument. I need precise control of the base frequency (pitch). I'm > wondering what would be the best way to generate it on an iPhone. > Store a

Re: NSTableView/NSOutlineView variable row height code has detected re-entry.

2010-09-10 Thread Corbin Dunn
Hi Keith, If you can reproduce this, even for one time, add a breakpoint on NSLog and you can get the backtrace for the offending problem. Post it back here to the list and we can give suggestions on how to fix it. Clark pointed out the major entry points of problems. In addition, people somet

move drag and drop operations between different data sources

2010-09-10 Thread Johan Rydberg
I'm researching the drag and drop facilities in NSTableView. Since there's no "commit drag" method in the data source protocol, is it possible to do a move operation between two tables with different data sources? If so, when and how is the row removed from the drag data source? All examples I'

SOAP requests sometimes fails

2010-09-10 Thread Ivan C Myrvold
I have developed a Cocoa application that communicates with a server via SOAP messages. On some Macs the SOAP requests sometimes fails, in that the SOAP requests sent never reaches the destination. And when this happens, all SOAP messages sent never gets a response back. The server never see the

Re: move drag and drop operations between different data sources

2010-09-10 Thread Kyle Sluder
On Sep 10, 2010, at 2:13 AM, Johan Rydberg wrote: > I'm researching the drag and drop facilities in NSTableView. > > Since there's no "commit drag" method in the data source protocol, is it > possible to do a move operation between two tables with different data > sources? If so, when and how i

Handling Connection Timeouts with NSStream

2010-09-10 Thread Carter R. Harrison
Hey Folks, I'm working on a app that establishes a network connection using NSStream. I found though that the code does not behave very well when it is trying to connect to an unreachable IP address or an IP address that just isn't accepting connections on the port I have specified. The code

How to make template images?

2010-09-10 Thread Marc Respass
Hi, I have a need for a lot of different template images in my apps. I have worked with my artist but she is not sure how to build a template image. We have both researched it and we are not finding much good information. The docs on template images say to use "black" and "clear" in the image b

Re: SOAP requests sometimes fails

2010-09-10 Thread Ivan C Myrvold
My SOAP request is coded like this: #pragma mark - #pragma mark SOAP method - (void)sXMLRequest:(NSString *)message { WSMethodInvocationRef soapCall; NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:message, @"sXMLRequest", nil]; NSDictionary *result;

Re: Handling Connection Timeouts with NSStream

2010-09-10 Thread Ken Thomases
On Sep 10, 2010, at 12:52 PM, Carter R. Harrison wrote: > I'm working on a app that establishes a network connection using NSStream. I > found though that the code does not behave very well when it is trying to > connect to an unreachable IP address or an IP address that just isn't > accepting

Memory question when added a view to the superView

2010-09-10 Thread Philip Vallone
Hi, If I create a view and add it to my superview, am I no longer the owner and do not have to release it? PinDetailsView *detailsView= [[PinDetailsView alloc] initWithFrame:CGRectMake(0, 0, 270, 420)]; detailsView.backgroundColor = [UIColor whiteColor]; CGRect frame = details

Re: Memory question when added a view to the superView

2010-09-10 Thread Dave Carrigan
On Sep 10, 2010, at 12:57 PM, Philip Vallone wrote: > If I create a view and add it to my superview, am I no longer the owner and > do not have to release it? That's not how cocoa memory management works. Nothing can ever take ownership from you; if you own something, you have to release it. If

Re: Memory question when added a view to the superView

2010-09-10 Thread Dave DeLong
*Unless the documentation says otherwise. Consider, for example, +[NSData dataWithBytesNoCopy:...]. Dave On Sep 10, 2010, at 2:03 PM, Dave Carrigan wrote: > Nothing can ever take ownership from you smime.p7s Description: S/MIME cryptographic signature

Re: Memory question when added a view to the superView

2010-09-10 Thread Philip Vallone
Thanks for the prompt replay. Ok I added autorelease: PinDetailsView *detailsView= [[[PinDetailsView alloc] initWithFrame:CGRectMake(0, 0, 270, 420)]autorelease]; Is this a correct way to release the object, or should I use [detailsView release]; Or is either acceptable? Thanks, On Sep 10,

Re: Memory question when added a view to the superView

2010-09-10 Thread Dave Carrigan
On Sep 10, 2010, at 1:05 PM, Dave DeLong wrote: > *Unless the documentation says otherwise. Consider, for example, +[NSData > dataWithBytesNoCopy:...]. True, although that particular method is taking ownership of a buffer, not of an object. I would be curious if there are any APIs that actuall

Re: Memory question when added a view to the superView

2010-09-10 Thread Lee Ann Rucker
On Sep 10, 2010, at 1:11 PM, Dave Carrigan wrote: > On Sep 10, 2010, at 1:05 PM, Dave DeLong wrote: >> *Unless the documentation says otherwise. Consider, for example, +[NSData >> dataWithBytesNoCopy:...]. > > > True, although that particular method is taking ownership of a buffer, not of >

Re: Memory question when added a view to the superView

2010-09-10 Thread Dave Carrigan
On Sep 10, 2010, at 1:08 PM, Philip Vallone wrote: > > Thanks for the prompt replay. > > Ok I added autorelease: > > PinDetailsView *detailsView= [[[PinDetailsView alloc] > initWithFrame:CGRectMake(0, 0, 270, 420)]autorelease]; > > Is this a correct way to release the object, or should I

Re: Memory question when added a view to the superView

2010-09-10 Thread Ken Thomases
On Sep 10, 2010, at 4:11 PM, Dave Carrigan wrote: > On Sep 10, 2010, at 1:08 PM, Philip Vallone wrote: >> >> Thanks for the prompt replay. >> >> Ok I added autorelease: >> >> PinDetailsView *detailsView= [[[PinDetailsView alloc] >> initWithFrame:CGRectMake(0, 0, 270, 420)]autorelease]; >> >>

Re: Memory question when added a view to the superView

2010-09-10 Thread Philip Vallone
Thanks Ken and Dave. Regards, Phil On Sep 10, 2010, at 5:19 PM, Ken Thomases wrote: > On Sep 10, 2010, at 4:11 PM, Dave Carrigan wrote: > >> On Sep 10, 2010, at 1:08 PM, Philip Vallone wrote: >>> >>> Thanks for the prompt replay. >>> >>> Ok I added autorelease: >>> >>> PinDetailsView *de

Re: How to make template images?

2010-09-10 Thread Ken Ferry
On Fri, Sep 10, 2010 at 10:58 AM, Marc Respass wrote: > Hi, > > I have a need for a lot of different template images in my apps. I have > worked with my artist but she is not sure how to build a template image. We > have both researched it and we are not finding much good information. The > docs

Re: How to make template images?

2010-09-10 Thread Marc Respass
Hi Ken, Thanks so much. I will look into -interiorBackgroundStyle. That sounds like the key. Meanwhile, we will modify our images to work correctly. I've built an image tester and many of them work well and I think we can fix those that don't. Thanks again Marc El Sep 10, 2010, a las 6:03 PM,

TDD and Cocoa

2010-09-10 Thread Daniel Lopes
Hello, Somebody have a good material about TDD in Cocoa? Actually I found on Apple's site about OCUnit but I would like to know what you guys use. I also would like to know if somebody have any sugestion about tools for acceptance/integration tests . Thanks again. Sent from my iPhone___

Inactive Window Receives Mouse Events

2010-09-10 Thread Richard Somers
I just noticed that when you hold down the command key over an inactive window and click and drag the mouse, the window will receive mouse events. You can move the window, use the tool bar, select text, interact with views, etc. Almost what ever you can do when the window is active with a m

Re: Inactive Window Receives Mouse Events

2010-09-10 Thread Kyle Sluder
On Sep 10, 2010, at 10:50 PM, Richard Somers wrote: > I have a custom view where this behavior is undesirable. How can I disable > this view from receiving mouse events when the window is inactive and the > user uses the command key with the mouse? You want -acceptsFirstMouse:. http://develop