|
Zhentar posted:Probably because you haven't told your UITableView to use your controller as a data source. Whut? I am letting my controller autocreate the view, the documentation states that dataSource is set to self.
|
# ? Aug 18, 2011 18:12 |
|
|
# ? Jun 5, 2024 08:20 |
|
Sinestro posted:Why is my loving UITableView being retarded and not displaying the data? I have implemented UITableViewDataSource on my controller, so what the gently caress? How are you initializing your ForumListViewController? Maybe you accidentally called the wrong initializer. Are you sure your 'forums' array is being populated?
|
# ? Aug 18, 2011 18:24 |
|
OHIO posted:How are you initializing your ForumListViewController? Maybe you accidentally called the wrong initializer. Are you sure your 'forums' array is being populated? code:
|
# ? Aug 18, 2011 18:35 |
|
Sinestro posted:Whut? I am letting my controller autocreate the view, the documentation states that dataSource is set to self. I checked the documentation before posting that. Have you tried sticking a breakpoint in tableview: numberOfRowsInSection to see what you're returning?
|
# ? Aug 18, 2011 19:05 |
|
It never fires.
|
# ? Aug 18, 2011 19:44 |
|
could you please post the code for your appdelegate?
|
# ? Aug 18, 2011 20:57 |
|
Echo Video posted:could you please post the code for your appdelegate? http://pastie.org/2393496 is the .m, the .h is stock.
|
# ? Aug 18, 2011 22:50 |
|
Sinestro posted:http://pastie.org/2393496 is the .m, the .h is stock. Pretty sure you're leaking your UIWindow there. Otherwise nothing looks fishy. Can we see ForumListViewController?
|
# ? Aug 18, 2011 23:05 |
|
pokeyman posted:Pretty sure you're leaking your UIWindow there. Otherwise nothing looks fishy. Can we see ForumListViewController? Sinestro posted:ForumListViewController.m
|
# ? Aug 18, 2011 23:09 |
|
Sinestro posted:links I stupidly missed Sorry! I just grabbed your code and threw it into a new project and it works no problem, though obviously I'm faking the number of sections, number of rows, and their contents. What's the number of sections you're reporting to your table view?
|
# ? Aug 18, 2011 23:57 |
|
stray posted:Why is it so hard to find some decent sample code that shows you how to build an app in Xcode 4 that uses a UITabBarController at its root, where one of the tabs gives you a UINavigationController that lets you drill down from a UITableView to a UIView? Sorry for the delay, I blame my kid. Sample project is up here: https://bitbucket.org/veddermatic/navitab/overview But here's the step by step, which is so simple, I was able to figure it out!
|
# ? Aug 19, 2011 00:07 |
|
Lumpy posted:Sample project is up here: https://bitbucket.org/veddermatic/navitab/overview Thanks, buddy! I'll dive into the code this weekend!
|
# ? Aug 19, 2011 00:40 |
|
pokeyman posted:Sorry! 0. I honestly don't even know.
|
# ? Aug 19, 2011 02:07 |
|
I'm getting the following strange memory errors in my project that I can't figure out:code:
First off, this is a standard Mac cocoa app using garbage collection. The error occurs infrequently (but consistently) when a CALayer object is being created within a particular method in my project, and the messages always come in pairs. Here's an example of a call stack when the error is logged (linked for huge). In that particular call stack the error is being logged from a layer being created as the backing layer of a subview I'm creating. But the error can also happen when I'm just doing something like CALayer* layer = [CALayer layer]. Clearly it's a garbage collection issue, but I don't see what I could be doing wrong that could be causing this issue. The error is only occurring when this particular method is called (layers created elsewhere in the app haven't ever had this problem), so it also seems to be specific to this particular context. But again, I have no idea what's wrong. It doesn't seem to have any noticeable effect from the user's perspective, but I'd still like to get rid of it. Anyone have any ideas on what might be causing it?
|
# ? Aug 19, 2011 02:49 |
|
Sinestro posted:0. I honestly don't even know. maybe something is up with the 'forums' object that the table is using? I'd check its properties after it's had 'loadForums' called on it, and when it's being used as a table data source in functions like numberOfRowsInSection, to make sure that the appropriate data is actually stored in it. your table view might be displaying just fine - there just might not be any data to be displayed.
|
# ? Aug 19, 2011 06:36 |
|
I've been out of the iPhone programming game for a while so I decided to update to the latest Xcode. Biggest mistake of my life apparently. I removed the older versions by running the uninstaller scripts, downloaded 4.1.1 from the App Store, ran the installer, and launched Xcode. It immediately crashed. I looked up some information online and I guess I have to reinstall iTunes to fix the crash? Okay, weird, but I did that. No more crash. So I attempted to start a new test project and run it in the Simulator immediately. 13 errors and I haven't even touched a line of code? What the gently caress is this bullshit? I've googled around a bit but can't find anything other than "reinstall 10.7 and try again". Please tell me that isn't the solution. I really really really shouldn't have to wipe my OS just to install this hosed up version of the developer tools...right?
|
# ? Aug 19, 2011 07:23 |
|
nolen posted:So I attempted to start a new test project and run it in the Simulator immediately. 13 errors and I haven't even touched a line of code? What the gently caress is this bullshit? Well, the errors all seem to stem from whatever build process not having permissions for the files/directories it needs to use. So: is your ~/Library folder owned by you? (chown -R or Get Info.) And can you try closing Xcode, deleting ~/Library/Developer, then opening Xcode again?
|
# ? Aug 19, 2011 08:22 |
|
nolen posted:I've been out of the iPhone programming game for a while so I decided to update to the latest Xcode. Biggest mistake of my life apparently. Or, barring what pokeyman said, try using Disk Utility to repair permissions on the drive?
|
# ? Aug 19, 2011 13:38 |
|
pokeyman posted:And can you try closing Xcode, deleting ~/Library/Developer, then opening Xcode again? After trying a Repair Permissions and nothing changing, I did this. It worked! Thanks to both of you!
|
# ? Aug 19, 2011 14:50 |
|
Can someone recommend a good merge tool that is not filemerge?
|
# ? Aug 19, 2011 15:14 |
|
2nd Rate Poster posted:Can someone recommend a good merge tool that is not filemerge? git
|
# ? Aug 19, 2011 19:58 |
|
KDiff3 works well, although visually speaking it's not a well done port.
|
# ? Aug 19, 2011 20:06 |
|
2nd Rate Poster posted:Can someone recommend a good merge tool that is not filemerge? If you mean a visual merge tool then P4merge from the Perforce toolkit is pretty powerful and has been a great assistance for those rare but painful overly postponed cross-team mega-branch convergences.
|
# ? Aug 19, 2011 20:08 |
|
I'm having trouble building a C++ program. edit: nevermind. I'll probably have to ask the author. baby puzzle fucked around with this message at 02:04 on Aug 21, 2011 |
# ? Aug 21, 2011 01:34 |
|
Looks like ObjC/CocoaTouch is a use-it-or-lose-it thing for me, so I'm going back to square one with CS193p and various books. I'm current on both XCode and MacOS X. Will I need to worry about things like ARC getting in my way if I start a brand new project today, or will they be transparent as long as I use the old memory model of manually retaining and releasing? All of my material is pre Xcode4.2. I was hoping to wait until CS193p updated with an Xcode4 and hopefully new memory management model semester but I really want to start getting a handle on this skillset again, so I can't really afford to wait. I suppose if the new semester is on iTunes and starts up soon I won't be too heavily invested in the current semester that I can't just start over. e: Oh it looks like I won't need to worry about ARC in 4.1 anyway I guess. some kinda jackal fucked around with this message at 13:46 on Aug 22, 2011 |
# ? Aug 22, 2011 13:41 |
|
So the latest Xcode only came with the 4.3 SDK and I'd like to at least try and target 4.2 to target a wider group of iOS owners. http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg This link has the old Xcode and the 4.2 SDK, but before I waste time downloading it all, will I be able to just extract the 4.2 SDK from the installer and use it with Xcode 4.1?
|
# ? Aug 22, 2011 16:40 |
|
Can't you target 4.2 by just not using 4.3+ features? Sorry if that's a dumb question, but I'm curious how people manage to build apps that can still run on 3.1 platforms if all they can get is the newest SDK.
|
# ? Aug 22, 2011 16:57 |
|
If you set your target to 4.2 then you can only use 4.2 features and you can build for earlier versions. It isn't perfect but it is pretty good. Personally I've just installed the earliest version of Xcode I want the SDK for, then upgrade each one to the next. That will leave you with multiple SDK versions installed. Apple really should offer that automatically, along with letting developers downgrade test devices... But they'd rather just force everyone to upgrade and I understand that point of view too.
|
# ? Aug 22, 2011 17:45 |
|
Yep, just set the deployment target to 4.2, which will cause anything introduced in 4.3 to be weakly-linked so that it will still run on 4.2. Of course, if you use any 4.3-specific features you'll have to check and see if the OS supports them at run time.
|
# ? Aug 23, 2011 06:09 |
|
Is there any point to implementing -dealloc in an app delegate? It's seemingly never called, which makes sense because why bother calling it if the process is about to die anyway, but then I'm pointlessly implementing it. Literally dead code that I have to keep up. And it's painful enough having to declare properties three times. ARC can't get out of beta soon enough.
|
# ? Aug 23, 2011 06:24 |
|
Excellent. Thanks for the explanation guys!
|
# ? Aug 23, 2011 17:06 |
|
Does anyone know of a way to get the iOS Device Simulator to open on the same screen as a fullscreen'd Xcode 4 window in Lion? It's annoying since Xcode is like the last window out of four fullscreen apps, and if I want to check out my debugger I either need to un-fullscreen Xcode or flip back and forth four pages between the simulator and xcode window
|
# ? Aug 25, 2011 00:55 |
|
I must have downloaded this example project, and now this pops up every time I open another project. I've deleted the repository again and again, but it always comes back. Where is this POS living?
|
# ? Aug 25, 2011 01:23 |
|
lord funk posted:I must have downloaded this example project, and now this pops up every time I open another project. I've deleted the repository again and again, but it always comes back. Where is this POS living? I had an issue similar to this and it turned out that Xcode hosed up my user account on my machine. I couldn't even authenticate preference panes or log back in with my usual credentials. Booting into Single User Mode and mounting the system then rebooting magically "fixed" it. Ever since upgrading to Lion and "upgrading" to Xcode 4.1, I've had nothing but weird hosed up issues. I'll probably do a clean install on my machine after this project is finished.
|
# ? Aug 25, 2011 05:21 |
|
lord funk posted:I must have downloaded this example project, and now this pops up every time I open another project. I've deleted the repository again and again, but it always comes back. Where is this POS living? Check out the organizer, I think there's lists of projects and/or repositories. Try deleting anything that looks relevant to that dialog box.
|
# ? Aug 25, 2011 07:05 |
|
pokeyman posted:Check out the organizer, I think there's lists of projects and/or repositories. Try deleting anything that looks relevant to that dialog box. I did this again and again - I could even reload Xcode, check that it's not there, and then it will reappear 5 seconds later. Turns out I had to hunt down the project folder and delete it.
|
# ? Aug 25, 2011 14:53 |
|
Man, I'm creating a new account for an LLC and the hoops you need to jump through are amazing. They now want notarized copies of the partnership agreement. Why the Secretary of State's letter accepting the LLC isn't enough I'll never know... So word to the wise kids... You'll need the following to open a corporate developer account: + SoC letter/acknowledgment of your LLC formation + Partnership or operating agreement, signed and notarized + A letter on company letterhead stating who you are and that you are authorized to sign legal agreements on behalf of the company along with your contact information They also prefer everything to be faxed for some reason, though scanned PDFs emailed have worked so far but the fax line should be active this week so I can start faxing documents on paper (?). Another protip: If you have business FIOS (which I need for my static IPs), you can get a phone line for free right now, at least compared to my old plan. For the same price as my 25/15 I can get 25/25 + phone line. For $2/mo more I can get 35/35 + phone line. I'm almost certain this is due to the massive decline of the wireline business. This will be the first time I've ever had a landline in my adult life.
|
# ? Aug 28, 2011 21:53 |
|
Ender.uNF posted:Man, I'm creating a new account for an LLC and the hoops you need to jump through are amazing. They now want notarized copies of the partnership agreement. Why the Secretary of State's letter accepting the LLC isn't enough I'll never know... Weird. For a Canadian corporation, I only had to fax my articles of incorporation. The GST agreement had to be mailed, though, and that took a while.
|
# ? Aug 29, 2011 00:58 |
|
I'm still bitter about Apple not accepting Canadian Sole Proprietorships as legitimate business entities
|
# ? Aug 29, 2011 02:40 |
|
|
# ? Jun 5, 2024 08:20 |
|
Ender.uNF posted:Man, I'm creating a new account for an LLC and the hoops you need to jump through are amazing. They now want notarized copies of the partnership agreement. Why the Secretary of State's letter accepting the LLC isn't enough I'll never know... I'm surprised, I had no problem like this when I opened an account only a few months ago. I just had to fax a copy of my secretary of state's certificate of incorporation. They even accepted a printout of the archived version from the state SOS' website, not the original copy they sent me when I incorporated 13 years ago.
|
# ? Aug 29, 2011 02:52 |