Re: NSTextView and NSTextContainer size & clipping area

2011-05-08 Thread Дмитрий Николаев
Code in Custom NSTextView - (void) drawRect: -- [super drawRect:dirtyRect]; NSBezierPath* aPath = [NSBezierPath bezierPath]; [aPath moveToPoint:NSMakePoint(100, 100)]; [aPath lineToPoint:NSMakePoint(500, 100)]; [aPath stroke]; --- Custom textview resize policy set, so it resizes

Documentation generation

2011-05-08 Thread Thomas Davie
Heya, I'm working on improving my CoreParse (http://www.github.com/beelsebob/CoreParse) framework by actually documenting it properly. The problem I'm hitting though is that either the two major documentation generators suck (doubt that, probably PEBKAC), or their default configuration sucks.

Re: Communicate Between CocoaAsyncSocket and Java Socket

2011-05-08 Thread Bing Li
Dear Chris, Thanks so much for your reply! I believe TCP can be used between Java and iOS. However, I worry that particular serialization exists in CocoaAsyncSocket so that Java cannot deserialize successfully. Do you think the issue exists? Best regards, Bing On Sun, May 8, 2011 at 6:40 AM, Ch

Re: Documentation generation

2011-05-08 Thread Dave DeLong
AppleDoc produces Apple-like docsets: https://github.com/tomaz/appledoc Cheers, Dave Sent from my iPhone On May 8, 2011, at 4:42 AM, Thomas Davie wrote: > Heya, > > I'm working on improving my CoreParse > (http://www.github.com/beelsebob/CoreParse) framework by actually documenting > it p

Re: Documentation generation

2011-05-08 Thread Thomas Davie
Excellent stuff thanks – hit a few bugs in it, but with some tweaking, its output looks absolutely brilliant. Cheers Tom Davie On 8 May 2011, at 14:11, Dave DeLong wrote: > AppleDoc produces Apple-like docsets: > > https://github.com/tomaz/appledoc > > Cheers, > > Dave > > Sent from my iPh

Re: NSTextView and NSTextContainer size & clipping area

2011-05-08 Thread Ross Carter
Try wrapping the call to super like this: [NSGraphicsContext saveGraphicsState]; [super drawRect:rect]; [NSGraphicsContext restoreGraphicsState]; On May 8, 2011, at 6:27 AM, Дмитрий Николаев wrote: > Code in Custom NSTextView - (void) drawRect: > > -- > [super drawRect:dirtyRec

Re: NSTextView and NSTextContainer size & clipping area

2011-05-08 Thread Kyle Sluder
On May 8, 2011, at 3:27 AM, Дмитрий Николаев wrote: > Custom textview resize policy set, so it resizes in all dimensions with > container. This is code for custom NSTextView > > - > - (void) setFrameSize:(NSSize)newSize { > > [super setFrameSize:newSize]; > > NSTextContainer *cont

Re: NSTextView and NSTextContainer size & clipping area

2011-05-08 Thread Дмитрий Николаев
It works now. Thank you very much for help! 08.05.2011, в 20:27, Ross Carter написал(а): > Try wrapping the call to super like this: > > [NSGraphicsContext saveGraphicsState]; > [super drawRect:rect]; > [NSGraphicsContext restoreGraphicsState]; > > > On May 8, 2011, at 6:27 AM, Дмитрий Н

Re: NSTextView and NSTextContainer size & clipping area

2011-05-08 Thread Дмитрий Николаев
I will try this solution too. Thanks for suggesting. 08.05.2011, в 21:33, Kyle Sluder написал(а): > On May 8, 2011, at 3:27 AM, Дмитрий Николаев wrote: > >> Custom textview resize policy set, so it resizes in all dimensions with >> container. This is code for custom NSTextView >> >> -

Set the Display link's framerate?

2011-05-08 Thread Nick
Hi Is there any way to customize the frequency of the Core Video Display Link's callback calls? If not, what is the way to manually limit the "framerate"? Thank you ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Set the Display link's framerate?

2011-05-08 Thread Thomas Davie
On 8 May 2011, at 20:20, Nick wrote: > Hi > Is there any way to customize the frequency of the Core Video Display > Link's callback calls? > If not, what is the way to manually limit the "framerate"? The entire point of a CVDisplayLink is that it's tied to the refresh timing of the display. If

Re: Communicate Between CocoaAsyncSocket and Java Socket

2011-05-08 Thread Greg Guerin
Bing Li wrote: I believe TCP can be used between Java and iOS. However, I worry that particular serialization exists in CocoaAsyncSocket so that Java cannot deserialize successfully. Do you think the issue exists? No. If there is an issue, it's almost certainly in your code. First, I hav

superview

2011-05-08 Thread Nelson Hazeltine
Since the value of superview is the next responder (the receiver, most often a view controller in iPhone applications), how is it that the type for superview is UIView? Isn't this inconsistent? NH ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: superview

2011-05-08 Thread Kyle Sluder
On Sun, May 8, 2011 at 5:08 PM, Nelson Hazeltine wrote: > Since the value of superview is the next responder (the receiver, most often > a view controller in iPhone applications) Where did you get this idea? See the documentation for -[UIResponder nextResponder]: http://developer.apple.com/libra

Re: superview

2011-05-08 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/8/11 5:37 PM, Kyle Sluder wrote: > On Sun, May 8, 2011 at 5:08 PM, Nelson Hazeltine wrote: >> Since the value of superview is the next responder (the receiver, most often >> a view controller in iPhone applications) > > Where did you get this i

what should I understand from kAudioQueueProperty_CurrentLevelMeterDB

2011-05-08 Thread Niran Bala
Hi, I am trying to measure dB levels of my voice. I use the following code. UInt32 propertySize = format.mChannelsPerFrame * sizeof (AudioQueueLevelMeterState); AudioQueueGetProperty( queue,

Re: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB

2011-05-08 Thread Graham Cox
On 08/05/2011, at 8:28 PM, Niran Bala wrote: > How should I interpret this value? > > When I mute the Mic on my laptop, this value is -120 My GUESS (only) would be that this is the line level, which is logical, since it couldn't possibly be actual sound pressure level, since the signal is am