Carbon is C++?

2010-02-25 Thread Chunk 1978
is Apple's Carbon basically code written in C++, while Cocoa is written in Objective-C? should developers avoid using frameworks written in C++ (like some sound frameworks)? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Carbon is C++?

2010-02-25 Thread Chunk 1978
i've been reading about how apple dropped their plans for Carbon 64 a while back, so if carbon is C++ then i'm surprised that apple is still supporting it at all? On Thu, Feb 25, 2010 at 6:42 PM, Dave Carrigan d...@rudedog.org wrote: On Feb 25, 2010, at 3:40 PM, Chunk 1978 wrote: is Apple's

Re: always show warnings?

2010-02-08 Thread Chunk 1978
Xcode 3.1.2 on Mac OS 10.5.8 On Mon, Feb 8, 2010 at 2:53 AM, Joar Wingfors j...@joar.com wrote: On 7 feb 2010, at 23.49, Chunk 1978 wrote: how can i maintain warnings in xcode?  they disappear if i ignore them and rebuild, but i'd like them to always appear if they haven't been addressed

Re: always show warnings?

2010-02-08 Thread Chunk 1978
2010, at 00.02, Chunk 1978 wrote: Xcode 3.1.2 on Mac OS 10.5.8 This problem was fixed with Xcode 3.2: The Build Results window has been completely redesigned to support advanced filtering of build results and to keep a persistent list of errors and warnings across builds. http

always show warnings?

2010-02-07 Thread Chunk 1978
how can i maintain warnings in xcode? they disappear if i ignore them and rebuild, but i'd like them to always appear if they haven't been addressed. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: logic problem. adding sine wave pattern to dynamic float

2010-02-06 Thread Chunk 1978
, Chunk 1978 wrote: help would be greatly appreciated. Vibrato is Frequency Modulation. The general formula for that is: y(t) = A * sin( 2 * π * fc * t + I * sin( 2 * π * fm * t)) Where fc is the 'carrier' or signal being modulated and fm is the modulation. A is the overall amplitude and I

logic problem. adding sine wave pattern to dynamic float

2010-02-05 Thread Chunk 1978
this is mostly a logic problem, so i apologize for my question not being cocoa specific. i'm attempting to add my own continuous pitch variation effect (vibrato) by assigning my sound's pitch to the path of a sine wave. this is my callback method, which is repeating every 1/30 of a second. -

Re: OpenAL and file size

2010-01-31 Thread Chunk 1978
, Chunk 1978 wrote: i'm under the impression that i currently am using extended audio file to read the file's data.  can you confirm based on the .m that was attached in my previous post? Your using ExtAudio file, but thats not really the important point of what I said - you need to load the file

sine wave

2010-01-31 Thread Chunk 1978
i'm searching for a general algorithm to produce a cartesian sine wave that outputs numbers, which i suppose would be based on maximum distance (range) from Y while using a timer. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Returning a nil float?

2010-01-30 Thread Chunk 1978
thanks. NAN seems to be the simplest solution. On Fri, Jan 29, 2010 at 10:00 PM, Greg Guerin glgue...@amug.org wrote: Chunk 1978 wrote: so above i'd like to write if (!sound) return nil;.  my reasoning is because some attributes to a sound object (like pan) are created only when the sound

Returning a nil float?

2010-01-29 Thread Chunk 1978
i'm almost 100% sure it's not possible to return a nil on basic data types, but just incase i'll post the question. -- - (float)panForSoundWithName:(NSString *)soundName { OpenALSound *sound = [soundDictionary

Re: Problems Fading Out Music

2010-01-26 Thread Chunk 1978
i just realized that this formula doesn't work with negative numbers. for example: shifting a pitch down one octave over a duration from 0.0 to -0.5, or panning a source with a duration from center at 0.0 to the left -1.0. any advice? On Thu, Jan 7, 2010 at 7:48 PM, Chunk 1978 chunk1

Re: Problems Fading Out Music

2010-01-26 Thread Chunk 1978
sorry, you're correct. i had an error in the code so it was wrongly implemented. it does indeed work with negative values. thanks again. On Tue, Jan 26, 2010 at 5:35 PM, Graham Cox graham@bigpond.com wrote: On 27/01/2010, at 9:24 AM, Graham Cox wrote: On 27/01/2010, at 9:18 AM, Chunk

UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
is it not possible to handle a sender's controlEvents inside a single method instead of sending it off to another method? -(IBAction)myButton:(id)sender { if (sender.UIControlEvent = forControlEvents:UIControlEventTouchUpInside) NSLog(@touchUp); } ___

Re: UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
/07/30/iphone-programming-tutorial-connecting-code-to-an-interface-builder-view/ Tharindu Madushanka On Sun, Jan 24, 2010 at 10:24 PM, Chunk 1978 chunk1...@gmail.com wrote: is it not possible to handle a sender's controlEvents inside a single method instead of sending it off to another method

Re: UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
24.01.2010 um 19:12 schrieb Chunk 1978: linking several control events to one method is what i'm trying to do, but i do not know how to decipher which control event is calling the method. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
; case 2: //button 2 action; break; case 3: //button 3 action; break; } i would find it hard to believe that the former solution is both easier to debug and maintain than the later. On Sun, Jan 24, 2010 at 5:06 PM, Graham Cox graham@bigpond.com wrote: On 25/01/2010, at 5:27 AM, Chunk 1978

Re: UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
wanted to simplify the code (one button per method) by using the buttons UIControlEvents of touchDown and touchUpInside/touchUpOutside and produce: - (IBAction)toggleLight { //toggle light } it's clear now that it's not possible. On Sun, Jan 24, 2010 at 6:12 PM, Chunk 1978 chunk1...@gmail.com wrote

Re: UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
i meant it's clear that it's not possible with UIControlEvents... or at least not simply so. On Sun, Jan 24, 2010 at 6:35 PM, Graham Cox graham@bigpond.com wrote: On 25/01/2010, at 10:22 AM, Chunk 1978 wrote: i wanted to simplify the code (one button per method) by using the buttons

error accessing timer's userInfo

2010-01-23 Thread Chunk 1978
i'm receiving an unrecognized selector sent to instance crash with the following code, but i can't figure out why. the program crashes when trying to set the timer's user info into local variables in fadeCallBack: ___ //Create Dictionary To Add To The Timer's userInfo

iPhone endInterruption delegate method killing OpenAL

2010-01-11 Thread Chunk 1978
i can't figure out what it wrong with my code (attached .m file). i'm playing a looping sound with OpenAL, which becomes interrupted by an alarm. when i quit the alarm, my endInterruption delegate method is activated, and a new OpenAL session is started but i can no longer play sounds. i've

Re: iPhone endInterruption delegate method killing OpenAL

2010-01-11 Thread Chunk 1978
pre-ordered your book from amazon - lord knows i need it! lol thanks again On Mon, Jan 11, 2010 at 5:26 PM, E. Wing ewmail...@gmail.com wrote: On 1/11/10, Chunk 1978 chunk1...@gmail.com wrote: i can't figure out what it wrong with my code (attached .m file).  i'm playing a looping sound

iPhone interruption with OpenAL?

2010-01-10 Thread Chunk 1978
i'm using an interruption listener callback with audiotoolbox to shut off music when a call (or something else) comes in to interrupt the app. however, i'd simply like to remove all AVFoundation from the code and strictly rely on OpenAL for sound. will OpenAL automatically pause like the rest of

Re: Problems Fading Out Music

2010-01-07 Thread Chunk 1978
])), but i can't really figure out what [fi time] is... ughhh... On Wed, Jan 6, 2010 at 10:38 PM, Graham Cox graham@bigpond.com wrote: On 07/01/2010, at 2:23 PM, Chunk 1978 wrote: unfortunately i'm developing for iPhone OS (which i should have stated earlier) so NSAnimation doesn't seem

Re: Problems Fading Out Music

2010-01-07 Thread Chunk 1978
graham, thanks for your patients and for the detailed response! i was able to immediately solve my broken logic after reading it. thanks again. On Thu, Jan 7, 2010 at 7:19 PM, Graham Cox graham@bigpond.com wrote: On 08/01/2010, at 6:17 AM, Chunk 1978 wrote: ok i'll use NSTimer instead

Problems Fading Out Music

2010-01-06 Thread Chunk 1978
i'm attempting to fade out music by supplying a duration and a target volume, but i'm running into complications. for this example, the current playing volume is set at 1.0, i want to fade the volume down to 0.5 over a duration of 4 seconds. this works alright - it's not perfect because i'm

Re: Problems Fading Out Music

2010-01-06 Thread Chunk 1978
unfortunately i'm developing for iPhone OS (which i should have stated earlier) so NSAnimation doesn't seem to be an option :-/ On Wed, Jan 6, 2010 at 10:12 PM, Graham Cox graham@bigpond.com wrote: On 07/01/2010, at 11:55 AM, Chunk 1978 wrote: i would *love* to find out how to fade

passing a method name?

2009-12-20 Thread Chunk 1978
i have a bunch of methods that will call one method. currently, i'm passing a string object so the called method will know which method had called it, and complete the proper task based on the method that called it. instead of creating strings and passing them, is it possible to pass the method

iPhone Testing Internet Connection?

2009-12-15 Thread Chunk 1978
i have been researching how to do this, and while i believe my code is correct, i always receive the alert stating the internet connection is unavailable. what am i doing wrong? -=-=-=-=- - (BOOL)internetConnection { //INTERNET CONNECTION TESTING //Add the

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Chunk 1978
its address to 0x001 ? if (internetConnection() == YES) 2009/12/15 Chunk 1978 chunk1...@gmail.com: i have been researching how to do this, and while i believe my code is correct, i always receive the alert stating the internet connection is unavailable.  what am i doing wrong

Even slider values with OpenAL pitch shifting

2009-12-15 Thread Chunk 1978
i have a seemingly simple enough problem, but i can't wrap my head around it. i have an even slider with a min value of 0.0, a maximum value of 2.0 and a neutral default value of 1.0. i need to be able to shift the pitch of a sound down one octave (to slider value 0.0) and shift the pitch up one

add documentation?

2009-12-13 Thread Chunk 1978
is it possible to add documentation to xcode? i'd like to add the documentation for OpenAL, as i'm just starting to learn about it, and would like the connivence of command+double click. also, how can i toggle the left side frame (Doc Sets, Bookmarks) of the documentation browser? thanks

Re: add documentation?

2009-12-13 Thread Chunk 1978
in the search field)  the sidebar automatically goes away.  Shortcut just in case: ⌥⌘F ⌫. Cheers, Evadne Wu On Dec 13, 2009, at 7:18 PM, Chunk 1978 wrote: is it possible to add documentation to xcode?  i'd like to add the documentation for OpenAL, as i'm just starting to learn about

quick question about OpenAL

2009-12-13 Thread Chunk 1978
i'm currently aware that openAL permits the changing of volume and pitch of a sound source, but what other changes are possible? sustain? attack/release? echo? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

water effect on iPhone with touch methods

2009-12-11 Thread Chunk 1978
i haven't yet started to study OpenGL, but i just came across a java sample online that creates a water effect, and the sample code was surprisingly quite small. here is the java example: http://www.neilwallis.com/java/water.html essentially, i'd like to replicate this, or something similar,

Re: Tracking Multiple Touches For Appropriate Label

2009-12-10 Thread Chunk 1978
/yg8nh5s On Tue, Dec 8, 2009 at 7:04 PM, Chunk 1978 chunk1...@gmail.com wrote: i'm very grateful for your help.  thanks so much for posting such a complete solution.  i'm certain there will be others like myself who will find your code extremely helpful.  thanks again. On Tue, Dec 8, 2009

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
thanks for the links. i'm really surprised with how complicated this is. i'm also equally surprised that there is not a lot of small sample code online On Tue, Dec 8, 2009 at 3:50 AM, mmalc Crawford mmalc_li...@me.com wrote: On Dec 8, 2009, at 12:38 am, mmalc Crawford wrote: is this suppose

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
wrote: On 08/12/2009, at 8:58 PM, Chunk 1978 wrote:   i'm really surprised with how complicated this is. Yes, because a multi-touch gesture-based events system is child's play, really. Makes you wonder why Apple's OS is the only one to have it built in, since any half-decent programmer

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
];                        }                }        } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event        {        //??        } On Tue, Dec 8, 2009 at 11:01 AM, mmalc Crawford mmalc_li...@me.com wrote: On Dec 8, 2009, at 3:49 am, Chunk 1978 wrote: i meant that i find it complicated compared to basic

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
i'm very grateful for your help. thanks so much for posting such a complete solution. i'm certain there will be others like myself who will find your code extremely helpful. thanks again. On Tue, Dec 8, 2009 at 5:24 PM, mmalc Crawford mmalc_li...@me.com wrote: On Dec 8, 2009, at 12:33 pm,

Tracking Multiple Touches For Appropriate Label

2009-12-07 Thread Chunk 1978
for 2 days now i've had unsuccessful attempts at trying to track UITouches that share the same view. i have a plain, full screen view that accepts multiple touches. i have 3 labels titled Touch1, Touch2, Touche3. all i'm trying to accomplish is to output the coordinates of the touches thru the

Re: Tracking Multiple Touches For Appropriate Label

2009-12-07 Thread Chunk 1978
the screen. On Mon, Dec 7, 2009 at 8:09 PM, mmalc Crawford mmalc_li...@me.com wrote: On Dec 7, 2009, at 4:12 pm, Chunk 1978 wrote:       if ([[[event allTouches] anyObject] view] == self)               {               for (UITouch *touch in touches

Re: breakout game - openGL or quartz?

2009-12-06 Thread Chunk 1978
cool game, patrick. i especially liked your sound. On Mon, Dec 7, 2009 at 2:05 AM, Nick Zitzmann n...@chronosnet.com wrote: On Dec 6, 2009, at 11:48 PM, Patrick J. Collins wrote: and it's been on my mind to make a version for the iPhone..  But before I do that, I thought it would be good to

Programatically Setting Delegate

2009-12-05 Thread Chunk 1978
i have a UIViewController that i'm setting as the delegate for my custom UIImageView class. from my custom UIImageView class i want the delegate to change it's background color (based on computations performed within the UIImageView class). in my UIViewController i write: –

Re: Programatically Setting Delegate

2009-12-05 Thread Chunk 1978
a...@freeport.de wrote: http://lmgtfy.com/?q=error+request+for+member+is+something+not+a+structure+of+union        atze Am 05.12.2009 um 09:12 schrieb Chunk 1978: i have a UIViewController that i'm setting as the delegate for my custom UIImageView class.  from my custom UIImageView class i want

Re: Programatically Setting Delegate

2009-12-05 Thread Chunk 1978
i figured it out. alexander, this would have been more helpful: http://tinyurl.com/yjpeljv On Sat, Dec 5, 2009 at 2:42 PM, Chunk 1978 chunk1...@gmail.com wrote: thanks for teaching me how to use google.  huge help. unfortunately, since i've imported both UIKit and my controller class into my

passing nothing to method with CGPoint argument

2009-12-05 Thread Chunk 1978
i have an method that takes a CGPoint as an argument. i would like to call the method without supplying a CGPoint, but i can't pass nil or null. i can pass CGPointZero, but that is still a point: {0, 0} ___ Cocoa-dev mailing list

Re: passing nothing to method with CGPoint argument

2009-12-05 Thread Chunk 1978
that will clear the output strings if there is no point, but CGPointZero is a point. On Sat, Dec 5, 2009 at 9:03 PM, Graham Cox graham@bigpond.com wrote: On 06/12/2009, at 12:59 PM, Chunk 1978 wrote: i have an method that takes a CGPoint as an argument.  i would like to call the method

Calling Methods From Custom UIImageView's initWithImage

2009-12-04 Thread Chunk 1978
i'm trying to understand how to create my own UIImageView class with it's own custom methods that are fired from the initWithImage method, but i can't get it to work. i believe i'm missing something fundemental, which for some reason hasn't yet clicked in my head, so please help me understand

Re: Calling Methods From Custom UIImageView's initWithImage

2009-12-04 Thread Chunk 1978
thanks. :) On Sat, Dec 5, 2009 at 1:56 AM, Graham Cox graham@bigpond.com wrote: On 05/12/2009, at 5:47 PM, Chunk 1978 wrote: – #import Foundation/Foundation.h @interface myUIImageViewClass : UIImageView       imageViewClass = [[UIImageView alloc] initWithImage:myImage

Set Continuous Feedback and Duration For UISlider:setValue:animated

2009-12-03 Thread Chunk 1978
i would like to slow down the setValue:animated animation duration from it's default (which i assume is 0.25f) to about 2 seconds. additionally, i need to have continuous feedback of the slider's value while it is animating. how can this be accomplished? i assume i'll have to write my own method

Contain touches within UIImageView only

2009-12-02 Thread Chunk 1978
i have a custom class for a UIImageView which contains touch methods. at launch, the custom UIImageView is added (by interface builder) as a subview to the main UIViewController's view. i can't seem to make the touch methods only trigger if they are within the custom UIImageView. for some

AudioToolbox Pitch Bend?

2009-11-30 Thread Chunk 1978
is it possible to bend the pitch of a sound using AudioToolbox? how can i accomplish a pitch bend of a live running sound? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: AudioToolbox Pitch Bend?

2009-11-30 Thread Chunk 1978
Alfke j...@mooseyard.com wrote: On Nov 30, 2009, at 9:04 AM, Chunk 1978 wrote: is it possible to bend the pitch of a sound using AudioToolbox? Nope. For that you need to use AudioUnits; there's a built-in unit that will do time/pitch shifting. how can i accomplish a pitch bend of a live

RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
what method, or combination of methods can i use to receive color information of a CGPoint. i can get basic coordinates of a view using UITouch's locationInView method, but i'd like to get an RGBA color information output. what methods or example code from apple should i research?

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
, Chunk 1978 wrote: what method, or combination of methods can i use to receive color information of a CGPoint. i can get basic coordinates of a view using UITouch's locationInView method, but i'd like to get an RGBA color information output. what methods or example code from apple should i

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
pixel of the last row of pixels, would i call it like this: –– [self getRGBAsFromImage:[UIImage imageNamed:@tree.png] atX:49 andY:100 count:(50*100)]; –– On Sun, Nov 29, 2009 at 1:28 PM, Chunk 1978 chunk1...@gmail.com wrote: precisely!  thanks for this. On Sun, Nov 29, 2009

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
values as well. --Waqar On Nov 29, 2009, at 5:13 PM, Chunk 1978 wrote: humm... while i understand most of this method, i don't understand what is passed as count?  i understand that this will convert a UIImage into a CGImage, and store each pixel of the image into an array, which are indexed

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
should not be sending who 50*100. If you want the pixel data for who image then you would do xx = yy = 0 and count would be 50*100. --Waqar On Nov 29, 2009, at 5:46 PM, Chunk 1978 wrote: humm... now i'm getting confused.  that method returns an array of UIColor objects for each pixel

UITextField Cursor Color

2009-11-21 Thread Chunk 1978
textfields in the iPhone SDK default to a blue color. i would like to change this color to white. i've checked the docs, and while the following method would work for development with Mac OS X, it is (currently) not present for the iPhone: [myTextField setInsertionPointColor:[UIColor

Annoying Pragma Mark Feature

2009-11-18 Thread Chunk 1978
sometimes when i want to quickly jump to a method, the list of methods will only display it's title rather than the actual list. this usually happens when i have a lot of methods, and it only happens for the last marks. how can i force it to show the list? and why does it do this? it's

Re: Annoying Pragma Mark Feature

2009-11-18 Thread Chunk 1978
missing a closing brace in your animationDidStop:finished:context: method. Dave On Nov 18, 2009, at 10:24 PM, Chunk 1978 wrote: sometimes when i want to quickly jump to a method, the list of methods will only display it's title rather than the actual list.  this usually happens when i

iPhone CLLocation Accuracy?

2009-11-11 Thread Chunk 1978
how accurate is CLLocation's kCLLocationAccuracyBest? about a meter or more? or is it hyper accurate as in centimeters? anyone know? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Cocoa Sounds

2009-11-10 Thread Chunk 1978
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 wrote: hi- On Nov 9, 2009, at 12:58 PM, Chunk 1978 wro... http://lists.apple.com

Cocoa Sounds

2009-11-09 Thread Chunk 1978
one thing i've always had an issue with is sound lag, which always (yet only) happens during a first sound. after the initial lag, sounds will play on time. at first i though it was my code, but recently i've noticed that it happens in Calculator. if you open Calculator, then choose Speech

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
humm... i'm running 10.5.8 on 2008 iMac C2D, but i never though it could have been the computer. would like to hear from others. On Mon, Nov 9, 2009 at 1:18 PM, Klaus Backert klaus.back...@t-online.de wrote: On 9 Nov 2009, at 18:58, Chunk 1978 wrote: one thing i've always had an issue

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
at 10:25 AM, Chunk 1978 chunk1...@gmail.com wrote: humm... i'm running 10.5.8 on 2008 iMac C2D, but i never though it could have been the computer. would like to hear from others. What sound API are you using? -Shawn ___ Cocoa-dev mailing list (Cocoa

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
also, i tried implementing a dummy sound (dead air .m4a file) during application launch, but that didn't help. the first real sound is still always lagged. On Mon, Nov 9, 2009 at 1:37 PM, Chunk 1978 chunk1...@gmail.com wrote: i'm using Cocoa's NSSound. here's is how i play sounds

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
seem reasonable to me. On Mon, Nov 9, 2009 at 1:51 PM, Sean McBride s...@rogue-research.comwrote: On 11/9/09 12:58 PM, Chunk 1978 said: one thing i've always had an issue with is sound lag, which always (yet only) happens during a first sound. after the initial lag, sounds will play on time

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
so, is there some other lightweight 3rd party framework that could substitute for cocoa's NSSound? On Mon, Nov 9, 2009 at 2:40 PM, lbland lbl...@vvi.com wrote: hi- On Nov 9, 2009, at 12:58 PM, Chunk 1978 wrote: one thing i've always had an issue with is sound lag, which always (yet only

Re: [iPhone] EditableDetailView sample code

2009-11-09 Thread Chunk 1978
Dave Mark and Jeff LaMarche wrote a pretty awesome book called Beginning iPhone Development which covers editable detail views. def check out the book. you can download source code on the product's website, but you have to register with the forums to do so. the book is really great, though. you

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
thanks. haven't had time to test the workaround yet. i'll check out coreaudio. On Mon, Nov 9, 2009 at 6:32 PM, Sean McBride s...@rogue-research.com wrote: On 11/9/09 6:25 PM, Chunk 1978 said: so, is there some other lightweight 3rd party framework that could substitute for cocoa's NSSound

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
a 30kb sound file for some apps using NSSound. while that previously mentioned workaround is more ideal than a lag, since it's problematic on macbooks it's not really a seamless solution. On Mon, Nov 9, 2009 at 7:30 PM, Jens Alfke j...@mooseyard.com wrote: On Nov 9, 2009, at 3:35 PM, Chunk 1978

Re: Window setTitle Ignored at Launch?

2009-11-08 Thread Chunk 1978
with no luck. the window will always launch as untitled and only switch to it's appropriate title when the popup menu is toggled. On Fri, Nov 6, 2009 at 2:34 PM, Jens Alfke j...@mooseyard.com wrote: On Nov 6, 2009, at 9:01 AM, Chunk 1978 wrote: - (void)displayViewController

Re: Window setTitle Ignored at Launch?

2009-11-08 Thread Chunk 1978
create an IBOutlet to the window, and set the title of that window during a method that is called during launch, shouldn't the code change the title of the window? On Sun, Nov 8, 2009 at 1:21 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Nov 8, 2009, at 10:05 AM, Chunk 1978 chunk1...@gmail.com

Re: Window setTitle Ignored at Launch?

2009-11-08 Thread Chunk 1978
is at -awakeFromNib time. If you're using the outlet prior to that, all bets are off. --Graham On 09/11/2009, at 6:48 AM, Chunk 1978 wrote: haven't tried that.  i guess i'm struggling with the idea of initiating objects before use.  currently (i hope i'm correct) i believe that IB objects which have

sorting xml using tableview datasource method?

2009-11-04 Thread Chunk 1978
i'm failing to sort the xml data on my tableview. am i suppose to make a model class for the data and have the table view display/sort that instead? i'm quite with this one. am i suppose to enter values in Sort Key and Selector IB fields for each column? doing so returns: -[NSXMLElement

Re: NSDate / NSXMLParser

2009-11-03 Thread Chunk 1978
have you tried it on your device? On Tue, Nov 3, 2009 at 11:26 AM, David Rowland rowla...@sbcglobal.netwrote: The SeismicXML sample code uses NSXMLParser to extract data from a file downloaded from the USGS. The time of an event appears in the file like this, .12:34:32Z According

why use pow(x, 2)?

2009-11-02 Thread Chunk 1978
i just came across some code, and i'm trying to understand why the developer chose to use the pow() function instead of simply multiplying as the 2nd arguments are always 2. i'm certainly no mathematician, but if the 2nd argument is going to be 2, why use pow()? is it just a matter of taste?

Re: why use pow(x, 2)?

2009-11-02 Thread Chunk 1978
ouf! dumbest question ever. please ignore. On Mon, Nov 2, 2009 at 2:07 PM, Jens Alfke j...@mooseyard.com wrote: On Nov 2, 2009, at 11:01 AM, Chunk 1978 wrote: why use this: float dist = pow(red - r, 2) + pow(green - g, 2) + pow(blue - b, 2); instead of: float dist = ((red - r) * 2

pointer to structure member reference?

2009-11-02 Thread Chunk 1978
having a bit of a time understanding this: - i think it's used to point to a member of a supplied argument of the method? - (void)method:(NSRange *)aRange ofSize:(NSSize *)aSize { aRange-location = 0; aSize-height = 4.0; } is it not possible to use dot notation here?

Re: pointer to structure member reference?

2009-11-02 Thread Chunk 1978
ah, ok... i get it now. thanks for the responses. On Mon, Nov 2, 2009 at 8:13 PM, Graham Cox graham@bigpond.com wrote: On 03/11/2009, at 11:58 AM, Chunk 1978 wrote: having a bit of a time understanding this: - i think it's used to point to a member of a supplied argument

Binding To Array Controller From A Different XIB?

2009-10-29 Thread Chunk 1978
i've created an NSMenuItem in the MainMenu.xib that targets an action in a different XIB thru the first responder. the action removes an object from the array. however, i'd like to binn the NSMenuItem object to the array controller's canRemove controller key so that the NSMenuItem is only

Re: Binding To Array Controller From A Different XIB?

2009-10-29 Thread Chunk 1978
ahhh, that was easy! thanks for clearing this up for me :) On Thu, Oct 29, 2009 at 1:32 PM, I. Savant idiotsavant2...@gmail.comwrote: On Thu, Oct 29, 2009 at 1:07 PM, Chunk 1978 chunk1...@gmail.com wrote: i've created an NSMenuItem in the MainMenu.xib that targets an action in a different

Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-27 Thread Chunk 1978
while the following works, this seems to me like an awful lot of code i've written just to change the font mask. any suggestions? -=-=-=-=- - (void)prepareAttributes { NSShadow *shadow = [[NSShadow alloc] init]; [shadow setShadowOffset:NSMakeSize(-3, -3)]; [shadow setShadowBlurRadius:5];

MIN(), MAX()?

2009-10-26 Thread Chunk 1978
i can't find any info about these c functions in the documentation. each take 2 floating point arguments, but i'm not positive what the function is doing with the arguments: float myMinimumFloat = MIN(50.0, 78.0); what does the function do with 50 and 78? also, my flaming shields are up.

Re: Magic Mouse and NSTouch

2009-10-21 Thread Chunk 1978
i would be surprised if it didn't support NSTouch. although you may have to wait for 10.6.2: http://www.macrumors.com/2009/10/20/magic-mouse-user-guide-suggests-mac-os-x-10-6-2-release-in-near-future/ On Wed, Oct 21, 2009 at 12:40 AM, Kyle Sluder kyle.slu...@gmail.com wrote: Can anyone confirm

File Encryption / Decription

2009-10-16 Thread Chunk 1978
what is the best way to encrypt and then decrepit a file in Cocoa? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: [iPhone] : How to customize Phonepad ?

2009-09-08 Thread Chunk 1978
you can customize the phone pad, or any of the UIKeyboards by creating and drawing your own buttons/views over them. it's a hack, but it can work quite nicely if you're interested in some minimal customization (for example: changing the Go or Done button to display Login or Save). best results

Re: Recording phone calls

2009-07-23 Thread Chunk 1978
iPhone apps are sandboxed, and are not able to run while a call comes in. On Wed, Jul 22, 2009 at 5:23 PM, Alfonso Urdanetaalfo...@red82.com wrote: Mahaboob wrote: If I developed this application, will apple store approve this? Given the laws governing the recording of telephone

Show UIButton Highlight Without Touching?

2009-07-20 Thread Chunk 1978
is there a method within the iPhone SDK that will set off the highlight of a button without actually touching the button? i have a lock button that locks a movable object on screen. if the lock button is pressed and the object is locked, i would like the button to highlight to signify that the

Animation Did Stop - Works For OS3 but not OS2.2

2009-07-03 Thread Chunk 1978
this works fine in OS 3, but it doesn't call fade out in OS2.2? what is the problem? - (void)animationHasFinished:(NSString *)animationID finished:(BOOL)finished { if ((animationID == @FadeIn) finished) { [self fadeOut]; }

Setter Getter on NSImageVIew / UIImageView?

2009-06-24 Thread Chunk 1978
i've seen code where this is written: -=-=-=- @property (nonatomic, retain) UIImageView *image; ... @synthisize image; ... [image release];//in dealloc method -=-=-=- aren't setters/getters methods used only for objects that need to have their value changed? assuming the UIImageView in the

Hide Interface Builder Object?

2009-06-24 Thread Chunk 1978
i have a simple black NSView that is positioned the top index level of the main view, covering all other visual elements in IB. it's purpose is to fade out, so the view appears to fade in. i have to often move it out of the way, and i also set it to hidden (then change it to not hidden at

Amount of Arguments per Method

2009-06-22 Thread Chunk 1978
clearly simplicity is important, but i'd like to know if there is a limit for the amount of arguments which a method can handle? also, just for fun, what's the longest method name you've seen? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Class Factory Methods?

2009-06-22 Thread Chunk 1978
confused (seriously, what else is new?)... correct me if (where) i'm wrong: -=-=-=-=- -(void)myMethod { NSString *foo = [[NSString alloc] initWithFormat:@bar]; NSLog(foo); } -=-=-=-=- new, alloc, initWithFormat (or stringWithFormat) are class factory methods that are declared methods inherited

Filling View With Pattern Image

2009-06-19 Thread Chunk 1978
i have this image (image.png) that i would like to tile throughout the view... i've read the Quartz 2D programming guide... ok, ok, i breezed thru it, i admit... but i couldn't seem to find an easy way of repeating an image through out a view without actually drawing the image programatically...

Re: Filling View With Pattern Image

2009-06-19 Thread Chunk 1978
, 2009 at 4:24 AM, Rob Kenigerr...@menumachine.com wrote: On 19/06/2009, at 6:14 PM, Chunk 1978 wrote: i have this image (image.png) that i would like to tile throughout the view... i've read the Quartz 2D programming guide... ok, ok, i breezed thru it, i admit... but i couldn't seem to find

Re: Filling View With Pattern Image

2009-06-19 Thread Chunk 1978
drawBackgroundPattern]; } hth, Florian. On 19 Jun 2009, at 10:14, Chunk 1978 wrote: i have this image (image.png) that i would like to tile throughout the view... i've read the Quartz 2D programming guide... ok, ok, i breezed thru it, i admit... but i couldn't seem to find an easy way

Basic, but still confuses me (initWithFrame and drawRect)

2009-06-19 Thread Chunk 1978
i want to create a UIView programatically... so i have the 2 main methods of UIView: InitWithFrame, and drawRect. i don't understand the difference between the 2. i think i'm suppose to simply set the frame size in initWithFrame method, and set attributes (like background color, and clipping

  1   2   3   >