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 r

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: Magic Mouse and NSTouch

2009-10-20 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 wrote: > Can anyone confirm that the new Magic M

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. thi

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]; [s

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 accassa

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 wrote: > On Thu, Oct 29, 2009 at 1:07 PM, Chunk 1978 wrote: > > i've created an NSMenuItem in the MainMenu.xib that targets an action in > a > > different XIB thru th

sizeWithAttributes Cutting Off Drop Shadow, Italic Mask?

2009-10-30 Thread Chunk 1978
does sizeWithAttributes not take into account the offset of an NSDropShadow or italic font mask? i have a dictionary of attributes for a string, and i'm trying to produce an image for the drag that doesn't crop the image with these attributes. NSSize stringSize = [string sizeWithAttributes:attrib

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? why

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 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

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 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 su

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 wrote: > 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 to rfc 822 'Z' mea

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 compare:

Re: Window setTitle Ignored at Launch?

2009-11-08 Thread Chunk 1978
an IBOutlet to the window 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 wrote: > > On Nov 6, 2009, at 9:01 AM, Chunk 1978 wrote: > >> - (

Re: Window setTitle Ignored at Launch?

2009-11-08 Thread Chunk 1978
bject. so if i 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 wrote: > On Nov 8, 2009, at 10:05 AM, Chunk 1978 wrote: > >

Re: Window setTitle Ignored at Launch?

2009-11-08 Thread Chunk 1978
first time you can be sure that an outlet actually points to what you > think it does 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 trie

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 > Spe

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 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
t; > On Mon, Nov 9, 2009 at 10:25 AM, Chunk 1978 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 ___

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 wrote: > i'm using Cocoa's NSSound. here's is how i play sound

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
he size of my sound files average 40kb, so it doesn't seem reasonable to me. On Mon, Nov 9, 2009 at 1:51 PM, Sean McBride wrote: > 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 fi

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 wrote: > hi- > > > On Nov 9, 2009, at 12:58 PM, Chunk 1978 wrote: > > one thing i've always had an issue with is sound la

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. yo

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 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&#x

Re: Cocoa Sounds

2009-11-09 Thread Chunk 1978
ading/executing 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 wrote: > > On Nov 9, 200

Re: Cocoa Sounds

2009-11-10 Thread Chunk 1978
.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 >

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 the

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 complete

Re: Annoying Pragma Mark "Feature"

2009-11-18 Thread Chunk 1978
indicate that you're 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&#x

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 whiteColor]

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
precisely! thanks for this. On Sun, Nov 29, 2009 at 1:24 PM, Waqar Malik wrote: > I think this is what you are looking for. > > < > http://stackoverflow.com/questions/448125/how-to-get-pixel-data-from-a-uiimage-cocoa-touch-or-cgimage-core-graphics > > > > On Nov 2

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
xels in height, and i want the RGBA color data of the second last 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 wrote:

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
those 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 st

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Chunk 1978
you > 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 retu

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. Conta

Re: AudioToolbox Pitch Bend?

2009-11-30 Thread Chunk 1978
09 at 12:14 PM, Jens Alfke 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. > &g

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 reason,

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

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 what

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 wrote: > > On 05/12/2009, at 5:47 PM, Chunk 1978 wrote: > > > >> – >> #import >> >> @interface myUIImageViewClass : UIImageView > > >>       imageViewClass = [[UIImageView

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: – myUIImageViewClass

Re: Programatically Setting Delegate

2009-12-05 Thread Chunk 1978
te: > 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 cla

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 wrote: > thanks for teaching me how to use google.  huge help. > > unfortunately, since i've imported both UIKit and my controller class &g

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 (Cocoa-dev@lists.apple

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 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 metho

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 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 just make a

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

Re: Tracking Multiple Touches For Appropriate Label

2009-12-07 Thread Chunk 1978
ching the screen. On Mon, Dec 7, 2009 at 8:09 PM, mmalc Crawford wrote: > > On Dec 7, 2009, at 4:12 pm, Chunk 1978 wrote: > >>       if ([[[event allTouches] anyObject] view] == self) >>               { >>            

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 wrote: > > On Dec 8, 2009, at 12:38 am, mmalc Crawford wrote: > >>> is this suppose to work for

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
Cox 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 th

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
thFormat:@"Title %i:\n%@", i+1, point];                        }                }        } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event        {        //??        } On Tue, Dec 8, 2009 at 11:01 AM, mmalc Crawford wrote: > > On Dec 8, 2009, at 3:49 am, Chunk 1978 wrote: >

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 wrote: > > On Dec 8, 2009, at 12:33 pm, mmalc Crawford wrot

Re: Tracking Multiple Touches For Appropriate Label

2009-12-10 Thread Chunk 1978
p://tinyurl.com/yg8nh5s On Tue, Dec 8, 2009 at 7:04 PM, Chunk 1978 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.

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, usi

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
; (i.e. there’s nothing 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 >

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 or

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 SystemConfigurat

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Chunk 1978
ess to 0x001 ? > > if (internetConnection() == YES) > > > > 2009/12/15 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

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

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 n

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 using

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 wrote: > > On 07/01/2010, at 11:55 AM, Chunk 1978 wrote: > >> i would *love* to find out how to f

Re: Problems Fading Out Music

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

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 wrote: > > On 08/01/2010, at 6:17 AM, Chunk 1978 wrote: > >> ok i'll us

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

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 also

Re: iPhone endInterruption delegate method killing OpenAL

2010-01-11 Thread Chunk 1978
st your insight. also, i just 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 wrote: > On 1/11/10, Chunk 1978 wrote: >> i can't figure out what it wrong with my code (attached .m file).  i'm >

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 Par

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
gt; http://icodeblog.com/2008/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 wrote: >> >> is it not possible to handle a sender's controlEvents inside a single >>

Re: UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
t;        atze > > > Am 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. >

Re: UIButton's Sender Control Events

2010-01-24 Thread Chunk 1978
break; 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 wrote: > > On 25/01/2010, at 5:27 AM, Chunk

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 wrote: > so it

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 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 >

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 wrote: >

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 wrote: > > On 27/01/2010, at 9:24 AM, Graham Cox wrote: > >> >> On 27/01/2010, at

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 objectForKey:soundNa

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 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

Re: OpenAL and file size

2010-01-31 Thread Chunk 1978
hat i can learn how to accomplish this? i'm thinking it would be ideal to supply my code with a file size limit, so that if a particular sound file is larger than to only play that file in stages. On Sun, Jan 31, 2010 at 3:27 PM, David Duncan wrote: > On Jan 31, 2010, at 10:48 AM, Chu

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 post

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. - (voi

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

2010-02-06 Thread Chunk 1978
*renters with damaged heat shields* sorry, once again. i've posted this to stackoverflow here: http://stackoverflow.com/questions/2212275/compensating-for-value-change-while-changing-value On Fri, Feb 5, 2010 at 4:55 PM, Graham Cox wrote: > > On 06/02/2010, at 1:02 AM, Chunk

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: 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 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

Re: always show warnings?

2010-02-08 Thread Chunk 1978
n 8 feb 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

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 admi

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 wrote: > > On Feb 25, 2010, at 3:40 PM, Chunk 1978 wrote: > &

Nike+iPod Settings Undocumented?

2009-05-31 Thread Chunk 1978
i can't seem to find documentation on how to disable preference specifiers based on PSToggleSwitchSpecifier current setting. an example is the Nike+iPod's settings. activating the app will enable the remaining settings to be configured, while they are grayed out/disabled if the app is not active.

End Of Method Releasing Order?

2009-06-01 Thread Chunk 1978
does it matter which order objects are released at the end of a method? example: -=-=-=-=- - (void)applicationWillTerminate:(NSNotification *)notification { FourLines *fourLines = [[FourLines alloc] init]; fourLines.field1 = field1.text; fourLines.field2 = field2.

Re: Is it possible to open a URL in a specific browser rather than the default one ???

2009-06-02 Thread Chunk 1978
i hate firefox, and although i have it on my system for backup, it would kinda piss me off if an app launched it for me instead of safari (which is often always open). i'm not sure you can do this without a hack, but i'm curious why you want to open in firefox as default? On Tue, Jun 2, 2009 at 8

Re: Add app to "launch on startup" list via AppleScript

2009-06-08 Thread Chunk 1978
if you're distributing for Leopard only, use this: -=-=-=-=-=-=-=- @interface Preferences (PrivateMethods) - (void)enableLoginItemWithLoginItemsReference:(LSSharedFileListRef )theLoginItemsRefs ForPath:(CFURLRef)thePath; - (void)disableLoginItemWithLoginItemsReference:(LSSharedFileListRef )theL

MVC Theory Help

2009-06-10 Thread Chunk 1978
so i get View and understand Controller, but i'm a touch fuzzy on Model. does anyone have a simple way of explaining this? perhaps a clever anecdote? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

CGGetMidX error?

2009-06-10 Thread Chunk 1978
i don't understand why i'm getting an error "invalid initializer" when just declaring some variables in a method: -=-=-=- CGRect fullScreenRect = [[UIScreen mainScreen] bounds]; CGPoint screenCenterPoint = (CGRectGetMidX(fullScreenRect), CGRectGetMidY(fullScreenRect)); -=-=-=-

Re: CGGetMidX error?

2009-06-10 Thread Chunk 1978
ahh... thanks :) On Wed, Jun 10, 2009 at 5:25 PM, Greg Parker wrote: > On Jun 10, 2009, at 2:11 PM, Chunk 1978 wrote: >> >> i don't understand why i'm getting an error "invalid initializer" when >> just declaring some variables in a method: >> &

Frame Origin Problem

2009-06-11 Thread Chunk 1978
while dragging (touching) a view, i'm trying to anchor the view in the center of the screen and resize the view's width and height based on the drag, but it's flashes all crazy and i can't figure out why it's doing so. i think it has to do with the resetting of the origin because if i set the orig

Re: Frame Origin Problem

2009-06-11 Thread Chunk 1978
should this code work? if there don't appear to be any errors i'm concerned it may be a bug, but i can't be sure. :-/ On Thu, Jun 11, 2009 at 7:15 AM, Chunk 1978 wrote: > while dragging (touching) a view, i'm trying to anchor the view in the > center of the screen a

Re: NSView directly drawn on screen?

2009-06-12 Thread Chunk 1978
NSBorderlessWindowMask (i think that's what it's called) is what you're looking for. Apple supplies a sample app here: http://developer.apple.com/samplecode/RoundTransparentWindow/index.html On Fri, Jun 12, 2009 at 1:51 AM, John Ku wrote: > What I am trying to achieve is like CoverSutra's: > scre

  1   2   3   >