My favorites | Sign in
Project Logo
          
Details: Show all Hide all

Last 30 days

Earlier this year

  • Oct 28, 2009
    issue 31 ("Checks" sample code glitch) reported by jona...@mac.com   -   What steps will reproduce the problem? 1. Open "Checks" app in iPhone 3.x.x 2. Check a few cells 3. Scroll down What is the expected output? What do you see instead? Random cells are selected as you scroll down. Please provide any additional information below. Apple's "TouchCells" sample app has the same glitch if you add enough cells so you have to scroll. Please help!!!
    What steps will reproduce the problem? 1. Open "Checks" app in iPhone 3.x.x 2. Check a few cells 3. Scroll down What is the expected output? What do you see instead? Random cells are selected as you scroll down. Please provide any additional information below. Apple's "TouchCells" sample app has the same glitch if you add enough cells so you have to scroll. Please help!!!
  • Aug 12, 2009
    issue 30 (Chapter 2 Sample failure) reported by bahonurn   -   First when i separate all the gathered file in main to different proper file.h and file.m and then when i write the code sample and build it i get error 2009-08-13 15:11:43.435 MyTest[4909:20b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MyTestAppDelegate 0xd193a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.' 2009-08-13 15:11:43.437 MyTest[4909:20b] Stack: ( 807902715, 2463649339, 808061681, 810717848, 810716389, 816538544, 807805711, 816533170, 816541363, 814712305, 814750229, 814739251, 814722434, 814748641, 839148405, 807687520, 807683624, 814715661, 814752238, 9122, 8974 ) i do not understand what seems to be a problem
    First when i separate all the gathered file in main to different proper file.h and file.m and then when i write the code sample and build it i get error 2009-08-13 15:11:43.435 MyTest[4909:20b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MyTestAppDelegate 0xd193a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.' 2009-08-13 15:11:43.437 MyTest[4909:20b] Stack: ( 807902715, 2463649339, 808061681, 810717848, 810716389, 816538544, 807805711, 816533170, 816541363, 814712305, 814750229, 814739251, 814722434, 814748641, 839148405, 807687520, 807683624, 814715661, 814752238, 9122, 8974 ) i do not understand what seems to be a problem
  • Jul 20, 2009
    issue 24 (Listing 2-10 mapCurl does not work) commented on by frederic.vergez   -   Does not work on IPod (1st gen) on OS 3.0 :(
    Does not work on IPod (1st gen) on OS 3.0 :(
  • May 28, 2009
    issue 4 (setDisplayedOrientation of the coverFlowLAyer) commented on by yihanfei   -   Hi I also need the way to change the orientation, but I can't find the definition of each arguments in this function Anybody can help? thanks a lot Frank
    Hi I also need the way to change the orientation, but I can't find the definition of each arguments in this function Anybody can help? thanks a lot Frank
  • May 22, 2009
    issue 24 (Listing 2-10 mapCurl does not work) commented on by pawangera   -   I m facing problem to implement mapcurl in iphone. The code which i am using to implement is listed below CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.0f]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; [animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")]; [animation setRemovedOnCompletion:NO]; [animation setFillMode: @"extended"]; [animation setRemovedOnCompletion: NO]; notCurled = !notCurled; [[[self switchview] layer] addAnimation:animation forKey:@"pageFlipAnimation"]; the error is notCurled not declared first use in this function
    I m facing problem to implement mapcurl in iphone. The code which i am using to implement is listed below CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.0f]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; [animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")]; [animation setRemovedOnCompletion:NO]; [animation setFillMode: @"extended"]; [animation setRemovedOnCompletion: NO]; notCurled = !notCurled; [[[self switchview] layer] addAnimation:animation forKey:@"pageFlipAnimation"]; the error is notCurled not declared first use in this function
  • May 05, 2009
    issue 29 (Missing FMDB files in SQLite DB example) reported by AmourineTech   -   The SQLite project of Chapter 10 is missing FMDB file. I can't find them at Erica Sadun's web site either.
    The SQLite project of Chapter 10 is missing FMDB file. I can't find them at Erica Sadun's web site either.
  • Apr 02, 2009
    issue 16 (Appflow not working on 2.2) commented on by peter.moberg   -   Forgot to mention that I am not running AppFlow but using the Coverflow classes that AppFlow is using...
    Forgot to mention that I am not running AppFlow but using the Coverflow classes that AppFlow is using...
  • Apr 02, 2009
    issue 16 (Appflow not working on 2.2) commented on by peter.moberg   -   For me it works fine in debug mode but when I run in release mode it crashes with a EXC_BAD_ACCESS signal in [UICoverFLowLayer _setNewSelectedIndex]. I am running on firmware 2.2.1 on a iPhone 3G
    For me it works fine in debug mode but when I run in release mode it crashes with a EXC_BAD_ACCESS signal in [UICoverFLowLayer _setNewSelectedIndex]. I am running on firmware 2.2.1 on a iPhone 3G
  • Apr 01, 2009
    issue 28 (Bug in 08a - MoviePlayer Audio) reported by belgweb   -   What steps will reproduce the problem? 1. Play in device. 2. Press START. Press on DONE to stop; 3. Press START again. There is bug — no any reaction. You cannot stop playing. __________ Sample from Apple for MediaPlayer working without problem.
    What steps will reproduce the problem? 1. Play in device. 2. Press START. Press on DONE to stop; 3. Press START again. There is bug — no any reaction. You cannot stop playing. __________ Sample from Apple for MediaPlayer working without problem.
  • Mar 19, 2009
    issue 27 (Navigation Controller functionality along with TabBarControl...) reported by sumitmorey   -   Firstly I'm a newbie. I've developed an iphone app and written code in appDelegates' applicationDidFinishLaunching and have being able to achieve: 1. Successfully add TabBarController and NavigationController together. 2. I've added my ViewControllers to TabBarController 3. Initialized NavigationController using TabBarController What is the expected output? What do you see instead? I want to add Navigation button on NavigationController so that my app would work like a normal Navigation controlled app. All the view will have TabBarContoller at the bottom of screen. What version of the product are you using? On what operating system? XCode 3.1.2, Simulator 2.1, MAC OSX 10.6.2 Please provide any additional information below. Looking forward for positive response.
    Firstly I'm a newbie. I've developed an iphone app and written code in appDelegates' applicationDidFinishLaunching and have being able to achieve: 1. Successfully add TabBarController and NavigationController together. 2. I've added my ViewControllers to TabBarController 3. Initialized NavigationController using TabBarController What is the expected output? What do you see instead? I want to add Navigation button on NavigationController so that my app would work like a normal Navigation controlled app. All the view will have TabBarContoller at the bottom of screen. What version of the product are you using? On what operating system? XCode 3.1.2, Simulator 2.1, MAC OSX 10.6.2 Please provide any additional information below. Looking forward for positive response.
  • Mar 16, 2009
    issue 26 (Problems with Chapter 3 Walktrough ) commented on by justinmound   -   Isssues resolved, but I am now convinced that these problems are related to the book being written for an previous version of the SDK. I am no expert, but here are the things you need to know if you too want to do the walkthrough with the (currently) latest version of Xcode (3.1.2): 1. As stated above, when you create a new project as a view-based application, you will get 2 .xib files. Figure 3-1, p.83 shows only one. Don't be confused, the text is correct, the one to edit is indeed MainWindow.xib. 2. Fig. 3-2 is missing the "First Responder" object in the project window. Ignore it. 3. Fig. 3-2 is also missing a View Controller. Interface Builder creates one for you so you don't have to create one yourself as the book states in Step 8 (p. 86). You do have to create a View, though. 4. If you follow the instructions exactly, you'll have two errors that will show as a warning/explanation point in Interface Builder's project window. The first is that you will need to remove the NIB name from the MyViewController. You'll see it in the inspector under the attributes tab. The second is that there is an extraneous outlet in WalkThroughAppDelegate. It needs to be removed. See the attachment "WalkThroughAppDelegate.png" Anyone, please correct me if I am wrong. If I'm correct, Erica, can you update the errata page as well, so others may not suffer as I have. :)
    Isssues resolved, but I am now convinced that these problems are related to the book being written for an previous version of the SDK. I am no expert, but here are the things you need to know if you too want to do the walkthrough with the (currently) latest version of Xcode (3.1.2): 1. As stated above, when you create a new project as a view-based application, you will get 2 .xib files. Figure 3-1, p.83 shows only one. Don't be confused, the text is correct, the one to edit is indeed MainWindow.xib. 2. Fig. 3-2 is missing the "First Responder" object in the project window. Ignore it. 3. Fig. 3-2 is also missing a View Controller. Interface Builder creates one for you so you don't have to create one yourself as the book states in Step 8 (p. 86). You do have to create a View, though. 4. If you follow the instructions exactly, you'll have two errors that will show as a warning/explanation point in Interface Builder's project window. The first is that you will need to remove the NIB name from the MyViewController. You'll see it in the inspector under the attributes tab. The second is that there is an extraneous outlet in WalkThroughAppDelegate. It needs to be removed. See the attachment "WalkThroughAppDelegate.png" Anyone, please correct me if I am wrong. If I'm correct, Erica, can you update the errata page as well, so others may not suffer as I have. :)
  • Mar 16, 2009
    issue 26 (Problems with Chapter 3 Walktrough ) reported by justinmound   -   What steps will reproduce the problem? 1. Follow directions for the walkthrough in Chapter 3 2. 3. What is the expected output? What do you see instead? -When I "Run" in Xcode, iPhone Simulator crashes. What version of the product are you using? On what operating system? -OSX 10.5.6, Xcode 3.1.2 Please provide any additional information below. I have tried the walkthrough three times, looked at the errata, and looked at the issues page, to no avail. If I create a "View-based Application" and open its MainWindow.xib, there are no errors, and it will build fine. However, if I remove the classes and replace main.m with your code, I see the attached error in Interface Builder. I am fairly certain that the error in IB is connected to the iPhone Simulator crashing, but I haven't figured out what the problem is yet. Some observations: - When I create a new project as a "View-Based Application," I get 2 .xib files, one MainWindow.xib and one based on the name of the new project, in my case, "WalkThroughViewController.xib". In Fig. 3-1, you only have one listed, MainWindow.xib - You commented on Issue 1 that there is indeed an error, but the correction is not listed in the errata, which leaves it confusing. I am left not sure whether or not I need to create a new ViewController or not.
    What steps will reproduce the problem? 1. Follow directions for the walkthrough in Chapter 3 2. 3. What is the expected output? What do you see instead? -When I "Run" in Xcode, iPhone Simulator crashes. What version of the product are you using? On what operating system? -OSX 10.5.6, Xcode 3.1.2 Please provide any additional information below. I have tried the walkthrough three times, looked at the errata, and looked at the issues page, to no avail. If I create a "View-based Application" and open its MainWindow.xib, there are no errors, and it will build fine. However, if I remove the classes and replace main.m with your code, I see the attached error in Interface Builder. I am fairly certain that the error in IB is connected to the iPhone Simulator crashing, but I haven't figured out what the problem is yet. Some observations: - When I create a new project as a "View-Based Application," I get 2 .xib files, one MainWindow.xib and one based on the name of the new project, in my case, "WalkThroughViewController.xib". In Fig. 3-1, you only have one listed, MainWindow.xib - You commented on Issue 1 that there is indeed an error, but the correction is not listed in the errata, which leaves it confusing. I am left not sure whether or not I need to create a new ViewController or not.
  • Mar 03, 2009
    issue 16 (Appflow not working on 2.2) commented on by jowibonech   -   I've got the same problem, using firmware 2.2.1 w/ 1st gen. iphone.
    I've got the same problem, using firmware 2.2.1 w/ 1st gen. iphone.
  • Mar 02, 2009
    issue 25 (Simple Web Service crashes with Stop Service) reported by pu...@interlog.com   -   What steps will reproduce the problem? 1. Start Service 2. Connect via web browser on MAC (or PC?) 3. Tap the Stop Service button 4. Application crashes What is the expected output? What do you see instead? Not a crash. You get a "EXC_BAD_ACCESS" instead. What version of the product are you using? On what operating system? 2.1.1 Please provide any additional information below.
    What steps will reproduce the problem? 1. Start Service 2. Connect via web browser on MAC (or PC?) 3. Tap the Stop Service button 4. Application crashes What is the expected output? What do you see instead? Not a crash. You get a "EXC_BAD_ACCESS" instead. What version of the product are you using? On what operating system? 2.1.1 Please provide any additional information below.
  • Feb 24, 2009
    issue 4 (setDisplayedOrientation of the coverFlowLAyer) commented on by cpunie   -   Hi, Does anybody have a solution for this yet? I would really like to know how I can change the orientation of the coverflow layer so that its orientation and position are good when the iphone has landscapeorientation. thanks
    Hi, Does anybody have a solution for this yet? I would really like to know how I can change the orientation of the coverflow layer so that its orientation and position are good when the iphone has landscapeorientation. thanks
  • Feb 18, 2009
    issue 24 (Listing 2-10 mapCurl does not work) commented on by xingpengfei   -   Thank you very much for your quick reply. However, I still got the same problem and the error message is shown below. CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2.1' I do have a valid provisioning profile and works fine with my own apps on a real device. Is it because my provisioning profile is for OS 2.2.1 and no OS 2.0 profile installed on my iphone? On your iPod Touch, are there both 2.2.1 and 2.0 provisioning profiles installed? Is that the reason why it works on yours. In addition, after upgrade my OS to 2.2.1, I always get the same error no matter which app downloaded is tested on my device. But there were no error when my OS is 2.0...That is very wired....
    Thank you very much for your quick reply. However, I still got the same problem and the error message is shown below. CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2.1' I do have a valid provisioning profile and works fine with my own apps on a real device. Is it because my provisioning profile is for OS 2.2.1 and no OS 2.0 profile installed on my iphone? On your iPod Touch, are there both 2.2.1 and 2.0 provisioning profiles installed? Is that the reason why it works on yours. In addition, after upgrade my OS to 2.2.1, I always get the same error no matter which app downloaded is tested on my device. But there were no error when my OS is 2.0...That is very wired....
  • Feb 18, 2009
    issue 24 (Listing 2-10 mapCurl does not work) commented on by Patek.Philipp   -   On my iPod Touch (2.2.1) there are no problems. I donwloaded the code from chapter 2 - opened the mapCurl code (07c - mapCurl) in Xcode - changed the developer provision file and than runs the programm on my iPod Touch successfully with curling.
    On my iPod Touch (2.2.1) there are no problems. I donwloaded the code from chapter 2 - opened the mapCurl code (07c - mapCurl) in Xcode - changed the developer provision file and than runs the programm on my iPod Touch successfully with curling.
  • Feb 15, 2009
    issue 24 (Listing 2-10 mapCurl does not work) reported by xingpengfei   -   What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? mapCurl is not functioning on iPod Touch 2.2.1 What version of the product are you using? On what operating system? iPod Touch 2.2.1 Please provide any additional information below. Is it because it is the undocumented? or is there any new way of doing it? Is apple still supporting this animation type? Thank you
    What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? mapCurl is not functioning on iPod Touch 2.2.1 What version of the product are you using? On what operating system? iPod Touch 2.2.1 Please provide any additional information below. Is it because it is the undocumented? or is there any new way of doing it? Is apple still supporting this animation type? Thank you
  • Feb 11, 2009
    issue 20 (Sample C08, 04a CustSwitch crashes if the iPhone's language ...) commented on by thorsten.kramp   -   Thanks a lot, I'll give it a try. Still don't understand why the international version uses images, though...
    Thanks a lot, I'll give it a try. Still don't understand why the international version uses images, though...
  • Feb 11, 2009
    issue 20 (Sample C08, 04a CustSwitch crashes if the iPhone's language ...) commented on by cyborch   -   I have a slightly hacked workaround for this issue, which should solve your problems.
    I have a slightly hacked workaround for this issue, which should solve your problems.
  • Feb 09, 2009
    issue 23 (Chapter 6 - Example 09a (receipt 6.9) is crashing) reported by Patek.Philipp   -   What steps will reproduce the problem? 1. Start the app 2. checkmark the first row of first section 3. scroll down 4. scroll up - now is crashing with following output: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIButton setPlaceholder:]: unrecognized selector sent to instance 0x54e3e0'" The problem is the double "break;" in the didSelectRowAtIndexPath: methode in the case 1. You should remove one "break" to the case 0, so the rows of the first section could not be checked and the app is not crashing. Problem occurs on simulator, I don't test it on device. Greetings Philipp
    What steps will reproduce the problem? 1. Start the app 2. checkmark the first row of first section 3. scroll down 4. scroll up - now is crashing with following output: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIButton setPlaceholder:]: unrecognized selector sent to instance 0x54e3e0'" The problem is the double "break;" in the didSelectRowAtIndexPath: methode in the case 1. You should remove one "break" to the case 0, so the rows of the first section could not be checked and the app is not crashing. Problem occurs on simulator, I don't test it on device. Greetings Philipp
  • Jan 28, 2009
    issue 21 (8-9 cant edit text under keyboard) reported by compoundeye   -   edit text in sample project 8-9. As the view does not resize when the keyboard appears, the cursor can go under the keyboard, and you cannot scroll the text view up to see what you are editing
    edit text in sample project 8-9. As the view does not resize when the keyboard appears, the cursor can go under the keyboard, and you cannot scroll the text view up to see what you are editing
  • Jan 18, 2009
    issue 20 (Sample C08, 04a CustSwitch crashes if the iPhone's language ...) reported by thorsten.kramp   -   What steps will reproduce the problem? 1. Set the iPhone's language to a language different from English, eg. Spanish (Settings- >General->International->Language) 2. Start the sample application. 3. What is the expected output? What do you see instead? To get UISwitches with labels different from ON/OFF yet the application crashes. What version of the product are you using? On what operating system? iPhone 2.2 simulator. Please provide any additional information below.
    What steps will reproduce the problem? 1. Set the iPhone's language to a language different from English, eg. Spanish (Settings- >General->International->Language) 2. Start the sample application. 3. What is the expected output? What do you see instead? To get UISwitches with labels different from ON/OFF yet the application crashes. What version of the product are you using? On what operating system? iPhone 2.2 simulator. Please provide any additional information below.
  • Jan 13, 2009
    issue 9 (C10 - 04a SQLite Example not working properly) commented on by ttripp   -   I haven't had the UUID error, it built and ran fine with the 2.2 SDK but when it attempts to open the database in FMDatabase:open it gets an error#14. Stepping into FMDatabase:open reveals this to be a return value from sqlite3_open() which maps to SQLITE_CANTOPEN in sqlite3.h. Did Apple sandbox apps from accessing the call log database in 2.2? Has anyone else been able to get this to work on a non-jailbroken 2.2 iPhone 3G?
    I haven't had the UUID error, it built and ran fine with the 2.2 SDK but when it attempts to open the database in FMDatabase:open it gets an error#14. Stepping into FMDatabase:open reveals this to be a return value from sqlite3_open() which maps to SQLITE_CANTOPEN in sqlite3.h. Did Apple sandbox apps from accessing the call log database in 2.2? Has anyone else been able to get this to work on a non-jailbroken 2.2 iPhone 3G?

Older

  • Dec 31, 2008
    issue 19 (No sound in Simulator - Recipe 4-11) commented on by christophermdmurphy   -   I solved this issue and you can close it. I reinstalled the SDK and suddenly sound worked. Thats the short story. I was also having problems running my apps on my iPhone. Reinstalling the SDK solved that too.
    I solved this issue and you can close it. I reinstalled the SDK and suddenly sound worked. Thats the short story. I was also having problems running my apps on my iPhone. Reinstalling the SDK solved that too.
  • Dec 30, 2008
    issue 14 (CoverFlow does not work for OS 2.2) commented on by tharindufit   -   When I try to run the code it gives following error with iPhone OS 2.2, is that due to my fault, please tell me, I am new to iPhone application development, thanks 2008-12-31 11:45:17.051 HelloWorld[2609:20b] *** -[UICoverFlowLayer initWithFrame:numberOfCovers:]: unrecognized selector sent to instance 0x520290 2008-12-31 11:45:17.052 HelloWorld[2609:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UICoverFlowLayer initWithFrame:numberOfCovers:]: unrecognized selector sent to instance 0x520290' 2008-12-31 11:45:17.053 HelloWorld[2609:20b]
    When I try to run the code it gives following error with iPhone OS 2.2, is that due to my fault, please tell me, I am new to iPhone application development, thanks 2008-12-31 11:45:17.051 HelloWorld[2609:20b] *** -[UICoverFlowLayer initWithFrame:numberOfCovers:]: unrecognized selector sent to instance 0x520290 2008-12-31 11:45:17.052 HelloWorld[2609:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UICoverFlowLayer initWithFrame:numberOfCovers:]: unrecognized selector sent to instance 0x520290' 2008-12-31 11:45:17.053 HelloWorld[2609:20b]
  • Dec 22, 2008
    issue 19 (No sound in Simulator - Recipe 4-11) reported by christophermdmurphy   -   What steps will reproduce the problem? 1. Pressing 'Do it' button in simulator will not trigger alert sound 2. 3. What is the expected output? What do you see instead? Nothing happens. Expected sound What version of the product are you using? On what operating system? Latest iPhone SDK (not sure where to check SDK version number) Please provide any additional information below. Seems like other people have had problems with sound and the simulator. My volume is turned up.. output is set to my MBP's built-in speakers. iTunes works. http://discussions.apple.com/thread.jspa?messageID=8303880
    What steps will reproduce the problem? 1. Pressing 'Do it' button in simulator will not trigger alert sound 2. 3. What is the expected output? What do you see instead? Nothing happens. Expected sound What version of the product are you using? On what operating system? Latest iPhone SDK (not sure where to check SDK version number) Please provide any additional information below. Seems like other people have had problems with sound and the simulator. My volume is turned up.. output is set to my MBP's built-in speakers. iTunes works. http://discussions.apple.com/thread.jspa?messageID=8303880
  • Dec 15, 2008
    issue 14 (CoverFlow does not work for OS 2.2) commented on by errrick   -   fixed code still does not work in 2.2
    fixed code still does not work in 2.2
  • Dec 12, 2008
    issue 18 (5a custom cell adds UILabel sub-views, whether needed or not) reported by cjheimark   -   What steps will reproduce the problem? Add many more elements with different text content then select and scroll around. There is a comical buildup of text layers on text layers What is the expected output? What do you see instead? crisp text not a layered jumble What version of the product are you using? On what operating system? 5a sample on 2.2 OS Please provide any additional information below. Must make a check to see if cell will be re-used and if so, don't add the text subviews, just access them, perhaps thru a sub-view tag find.
    What steps will reproduce the problem? Add many more elements with different text content then select and scroll around. There is a comical buildup of text layers on text layers What is the expected output? What do you see instead? crisp text not a layered jumble What version of the product are you using? On what operating system? 5a sample on 2.2 OS Please provide any additional information below. Must make a check to see if cell will be re-used and if so, don't add the text subviews, just access them, perhaps thru a sub-view tag find.
  • Nov 30, 2008
    issue 17 (Listing 2-7 doesn't do bitmap hit detection?) reported by gary.boone   -   The 2-7 code is supposed to use the bitmap alpha channel for hit detection. But the code on page 55 in "pointInside:" reads: int alpha = (unsigned char) bitmap[startByte]; return (alpha > 0.5); Hmmm. Shouldn't alpha be a float and the bitmap value divided by 255? It seems that alpha is 255 no matter where in the image you click. So there's no hit detection happening at all. Also, who calls pointInside:? I'm not seeing it mentioned in the SDK documentation or elsewhere in the code... Note: I'm testing this in the simulator. Thanks!
    The 2-7 code is supposed to use the bitmap alpha channel for hit detection. But the code on page 55 in "pointInside:" reads: int alpha = (unsigned char) bitmap[startByte]; return (alpha > 0.5); Hmmm. Shouldn't alpha be a float and the bitmap value divided by 255? It seems that alpha is 255 no matter where in the image you click. So there's no hit detection happening at all. Also, who calls pointInside:? I'm not seeing it mentioned in the SDK documentation or elsewhere in the code... Note: I'm testing this in the simulator. Thanks!
  • Nov 30, 2008
    issue 16 (Appflow not working on 2.2) reported by iphone2love   -   AppFlow is not working on firmware 2.2. The program opens up and close right back to the springboard. I'm using AppFlow 2.6 on a 1st Gen iPhone.
    AppFlow is not working on firmware 2.2. The program opens up and close right back to the springboard. I'm using AppFlow 2.6 on a 1st Gen iPhone.
  • Nov 22, 2008
    issue 15 (Extended XMLParser and TreeNode to add attributes and useful...) reported by adrian.cockcroft   -   What steps will reproduce the problem? 1. Parse a complex XML feed 2. Notice that the XML attributes are not being collected 3. Try to find complex deeply nested leaf nodes with specific attributes 4. Use this code instead :-) I needed to parse the Netflix API, which has a complex REST/XML schema, so I extended the example code. Many thanks for the cookbook example, it was very very useful.
    What steps will reproduce the problem? 1. Parse a complex XML feed 2. Notice that the XML attributes are not being collected 3. Try to find complex deeply nested leaf nodes with specific attributes 4. Use this code instead :-) I needed to parse the Netflix API, which has a complex REST/XML schema, so I extended the example code. Many thanks for the cookbook example, it was very very useful.
  • Nov 22, 2008
    issue 14 (CoverFlow does not work for OS 2.2) commented on by webmas...@soundside.de   -   Sample Code is now working fine. But I can not add an image to the coverflow like before. I did it like this (in createImage) ---------------------------------------------------------- // Load image from applicaiton bundle NSString* imageFileName = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"kurve.png"]; CGDataProviderRef provider = CGDataProviderCreateWithFilename([imageFileName UTF8String]); CGImageRef image = CGImageCreateWithPNGDataProvider(provider, NULL, true, kCGRenderingIntentDefault); // Draw image CGContextDrawImage(context, CGRectMake(50, 50, 200, 200), image); CGImageRelease(image); CGDataProviderRelease(provider); ---------------------------------------------------- It worked fine in 2.0 and 2.1 but crashed in 2.2 Crashed in main.m applicationDidFinishLaunching line: cvc.view.tag = CVC_VIEW_TAG;
    Sample Code is now working fine. But I can not add an image to the coverflow like before. I did it like this (in createImage) ---------------------------------------------------------- // Load image from applicaiton bundle NSString* imageFileName = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"kurve.png"]; CGDataProviderRef provider = CGDataProviderCreateWithFilename([imageFileName UTF8String]); CGImageRef image = CGImageCreateWithPNGDataProvider(provider, NULL, true, kCGRenderingIntentDefault); // Draw image CGContextDrawImage(context, CGRectMake(50, 50, 200, 200), image); CGImageRelease(image); CGDataProviderRelease(provider); ---------------------------------------------------- It worked fine in 2.0 and 2.1 but crashed in 2.2 Crashed in main.m applicationDidFinishLaunching line: cvc.view.tag = CVC_VIEW_TAG;
  • Nov 21, 2008
    C11 - One More Thing for Firmware 2.2.zip (Chapter 11 Sample updated for 2.2) file uploaded by ericasadun   -  
    Labels: Type-Source
    Labels: Type-Source
  • Nov 21, 2008
    issue 14 (CoverFlow does not work for OS 2.2) commented on by webmas...@soundside.de   -   Sample app from your site is not working too
    Sample app from your site is not working too
  • Nov 21, 2008
    issue 14 (CoverFlow does not work for OS 2.2) reported by webmas...@soundside.de   -   I created an app using CoverFlow - this worked find for OS 2.1 The same app does not work for OS 2.2
    I created an app using CoverFlow - this worked find for OS 2.1 The same app does not work for OS 2.2
  • Nov 13, 2008
    issue 5 (Bonus Sample code) commented on by KenWongMSFT   -   Could you pleaseeee post the Bounce back example as its really cool :) Or give us a hint on how to assemble it :)
    Could you pleaseeee post the Bounce back example as its really cool :) Or give us a hint on how to assemble it :)
  • Nov 13, 2008
    issue 5 (Bonus Sample code) commented on by KenWongMSFT   -   Could you pleaseeee post the Bounce back example as its really cool :) Or give us a hint on how to assemble it :)
    Could you pleaseeee post the Bounce back example as its really cool :) Or give us a hint on how to assemble it :)
  • Nov 10, 2008
    issue 13 (Compiling with GCC and Make from the CLI) reported by codebrain   -   Hi, Can you please show how I can compile Ch1 main.m using gcc and make from the CLI. Thanks.
    Hi, Can you please show how I can compile Ch1 main.m using gcc and make from the CLI. Thanks.
  • Nov 10, 2008
    issue 10 (Chapter 7 Samples failing) commented on by ericasadun   -   You need to run these on the iPhone itself. The simulator does not have all the codecs that are built into the phone.
    You need to run these on the iPhone itself. The simulator does not have all the codecs that are built into the phone.
  • Nov 10, 2008
    issue 12 (Link to Code on home page does not work) reported by be...@yellowgecko.de   -   Dear Erica, just bought your book. Did not get too far so cannot really commet on it, but so far is great. Just when I wanted to get the code for chapter one I noticed that the link on the left side of your home page does not work. I could only access the code via the blog link on the right. Cheers, Bernd
    Dear Erica, just bought your book. Did not get too far so cannot really commet on it, but so far is great. Just when I wanted to get the code for chapter one I noticed that the link on the left side of your home page does not work. I could only access the code via the blog link on the right. Cheers, Bernd
  • Nov 09, 2008
    issue 11 (double free errors in SearchBar (Chapter 8, controls) exampl...) reported by massimo....@unile.it   -   What steps will reproduce the problem? 1. launch the application 2. the console shows the message: HelloWorld(19002,0xa0391fa0) malloc: *** error for object 0x45af10: double free *** set a breakpoint in malloc_error_break to debug 3. insert a letter in the search textfield: this will trigger the following messages: HelloWorld(19002,0xa0391fa0) malloc: *** error for object 0x47ff30: double free *** set a breakpoint in malloc_error_break to debug HelloWorld(19002,0xa0391fa0) malloc: *** error for object 0x47ff10: double free *** set a breakpoint in malloc_error_break to debug Each time you add a letter you get two additional double free messages What is the expected output? What do you see instead? The application appears to work, but if you use it for enough time, it crashes What version of the product are you using? On what operating system? Latest version available for download, compiled on the latest iPhone SDK on 10.5.5 Please provide any additional information below. A cursory inspection of the source code does not show easy to spot double free errors, at least for release and autorelease methods.
    What steps will reproduce the problem? 1. launch the application 2. the console shows the message: HelloWorld(19002,0xa0391fa0) malloc: *** error for object 0x45af10: double free *** set a breakpoint in malloc_error_break to debug 3. insert a letter in the search textfield: this will trigger the following messages: HelloWorld(19002,0xa0391fa0) malloc: *** error for object 0x47ff30: double free *** set a breakpoint in malloc_error_break to debug HelloWorld(19002,0xa0391fa0) malloc: *** error for object 0x47ff10: double free *** set a breakpoint in malloc_error_break to debug Each time you add a letter you get two additional double free messages What is the expected output? What do you see instead? The application appears to work, but if you use it for enough time, it crashes What version of the product are you using? On what operating system? Latest version available for download, compiled on the latest iPhone SDK on 10.5.5 Please provide any additional information below. A cursory inspection of the source code does not show easy to spot double free errors, at least for release and autorelease methods.
  • Nov 07, 2008
    issue 10 (Chapter 7 Samples failing) reported by limitedwave   -   What steps will reproduce the problem? 1. Open xcode project for 07a or 08a 2. Build and Run 3. Click on Play What is the expected output? What do you see instead? Hearing I have a Dream SPeech was expected, got nothing. What version of the product are you using? On what operating system? OSX 10.5.5, everything updated, new xcode. Please provide any additional information below.
    What steps will reproduce the problem? 1. Open xcode project for 07a or 08a 2. Build and Run 3. Click on Play What is the expected output? What do you see instead? Hearing I have a Dream SPeech was expected, got nothing. What version of the product are you using? On what operating system? OSX 10.5.5, everything updated, new xcode. Please provide any additional information below.
  • Nov 05, 2008
    issue 8 (Listing 2-7. Extra *colorView. Doesn't match sample code d...) commented on by jhager   -   There also appears to be a potential memory leak if setImage:(UIImage *) is invoked with a second time with a different image.
    There also appears to be a potential memory leak if setImage:(UIImage *) is invoked with a second time with a different image.
  • Nov 05, 2008
    issue 8 (Listing 2-7. Extra *colorView. Doesn't match sample code d...) commented on by jhager   -   There also appears to be a potential memory leak if setImage:(UIImage *) is invoked with a second, third or forth time and a different image.
    There also appears to be a potential memory leak if setImage:(UIImage *) is invoked with a second, third or forth time and a different image.
  • Nov 05, 2008
    issue 8 (Listing 2-7. Extra *colorView. Doesn't match sample code d...) commented on by jhager   -   There also appears to be a potential memory leak if setImage:(UIImage *) is invoked with a different image.
    There also appears to be a potential memory leak if setImage:(UIImage *) is invoked with a different image.
  • Nov 05, 2008
    issue 7 (All code in main.m file) commented on by matt.sephton   -   Just take a look at "Programming in Objective-C" by Stephen Kochan (Developer's Library, same series of books), which includes simple comments in the code listings. This, amongst other things, makes it such an easy book to read and digest.
    Just take a look at "Programming in Objective-C" by Stephen Kochan (Developer's Library, same series of books), which includes simple comments in the code listings. This, amongst other things, makes it such an easy book to read and digest.
  • Nov 05, 2008
    issue 9 (C10 - 04a SQLite Example not working properly) reported by m...@collet.nl   -   What steps will reproduce the problem? 1. download and include the FMDB files 2. compile What is the expected output? What do you see instead? I expect to see the program run (tried on both simulator and device with 2.1 installed) I get the following message in the debugger: warning: UUID mismatch detected with the loaded library - on disk is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblock down.dylib =uuid-mismatch-with-loaded- file,file="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/lib lockdown.dylib" 2008-11-05 10:09:33.673 HelloWorld[905:20b] error opening!: 14 Could not open db. What version of the product are you using? On what operating system? Mac OSX Leopard, latest version, iPhone 2.1 latest build Xcode3 Latest build Please provide any additional information below. Could you please respond to me at marc @ collet . nl? Best regards, Marc Collet
    What steps will reproduce the problem? 1. download and include the FMDB files 2. compile What is the expected output? What do you see instead? I expect to see the program run (tried on both simulator and device with 2.1 installed) I get the following message in the debugger: warning: UUID mismatch detected with the loaded library - on disk is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblock down.dylib =uuid-mismatch-with-loaded- file,file="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/lib lockdown.dylib" 2008-11-05 10:09:33.673 HelloWorld[905:20b] error opening!: 14 Could not open db. What version of the product are you using? On what operating system? Mac OSX Leopard, latest version, iPhone 2.1 latest build Xcode3 Latest build Please provide any additional information below. Could you please respond to me at marc @ collet . nl? Best regards, Marc Collet
  • Nov 04, 2008
    issue 8 (Listing 2-7. Extra *colorView. Doesn't match sample code d...) commented on by jhager   -   Also the book contains a typo in this example. When calling CreateARGBBitmapContext it is passing 2 parameters (img, size) instead of just img
    Also the book contains a typo in this example. When calling CreateARGBBitmapContext it is passing 2 parameters (img, size) instead of just img
 
Hosted by Google Code