Re: Cocoa Sounds

2009-11-11 Thread Mark Gallegly
That's a shame, sounds of silence always seem to work for Simon & Garfunkel. On Nov 10, 2009 11:56 PM, "Chunk 1978" wrote: i have a launch sound of silence already implemented in my code, but it doesn't always work for some reason. On Wed, Nov 11, 2009 at 2:39

Re: Cocoa Sounds

2009-11-10 Thread Mark Gallegly
That's a good idea. Someone should of suggested that before. On Nov 10, 2009 11:36 PM, "mlist0...@gmail.com" wrote: What I've done in the past is to simply play a silent sound before I actually need to play a sound for real. This "primes the pump". _murat On Nov 9, 2009, at 11:40 AM, lbland wr

Re: NSString of selected text in NSTextView

2009-11-07 Thread Mark Gallegly
Here is one: -(NSString*) getSelectedTextInTextView:(NSTextView*)theTextView { NSRange range = [theTextView selectedRange]; NSData* rtfData = [theTextView RTFFromRange: range]; NSAttributedString* aStr = [[NSAttributedString alloc] initWithRTFData:rtfData documentAttributes: NU

Re: why use pow(x, 2)?

2009-11-02 Thread Mark Gallegly
Hasn't this gone off topic? Shouldn't this be discussed on the pow(x,x) Vs. x * x forum? On 11/2/09 2:10 PM, "Luke the Hiesterman" wrote: > I can't speak for others, but I never meant to actually argue that pow > (x, 2) is clearer than x * x. My argument was that each author should > use whiche

Re: Subclassing a view class from an external framework

2009-10-15 Thread Mark Gallegly
gt;> to have trouble with headers in frameworks. What I did was select "Read Class >> Files..." in the "File" menu of Interface Builder and read the header file >> for my framework class. The solved the problem for me. >> >> -Jeff >> >> >

Subclassing a view class from an external framework

2009-10-13 Thread Mark Gallegly
I have an NSView subclass defined in a framework called FrameworkView. The FrameworkView class has a property like so: @property (nonatomic, retain) IBOutlet NSView* someView; This framework has the necessary code in it to work as an Interface Builder plugin, and everything seems to work fine in

Subclassing a view class from an external framework

2009-10-13 Thread Mark Gallegly
I have an NSView subclass defined in a framework called FrameworkView. The FrameworkView class has a property like so: @property (nonatomic, retain) IBOutlet NSView* someView; This framework has the necessary code in it to work as an Interface Builder plugin, and everything seems to work fine in