Re: Crash at iOS App Startup - What Could Have Gone Wrong?
FWIW, I successfully used for years svn on a file:// repository with the directory pointing to Dropbox. It works and you can check it out from different machines (I happened to have a desktop and a laptop). But I also suggest to move to git... Il giorno 22/apr/2015, alle ore 00:17, Alex Zavatone z...@mac.com ha scritto: You can set up the server locally! On Apr 21, 2015, at 4:04 PM, Michael Crawford wrote: I'm adept with svn. ___ 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 Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Problem with collapsing sections in UITableView
Hi all - I have an app that displays several screens with a ton of user-generated data, and at the advice of a UI designer I'm thinking of putting the data into sections that I can collapse if the section has no data. I have a really simple implementation mocked up: a table view with one cell per section. The cell is custom and has controls set up with auto layout to show the appropriate data. There's also a custom section header cell, with a button that expands and collapses the section by inserting or deleting that section's data cell, which animates smoothly using the normal insert or delete anims. This all works great except for one thing I can't figure out. My mockup has two sections, and when I collapse the top section, the custom section header cell for the second section disappears and never comes back. I've looked in the UI debugger and the view is just gone. Anyone have any ideas? (Or a simpler way to accomplish what I'm trying to do?) Thanks in advance! ___ 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 Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Linking to MLMediaSourcePhotosIdentifier
Also, adding the explicit confuses the compiler - it then marks that code as dead, stating it will never be executed. I’m not sure how it comes to that conclusion exactly, The reason it comes to that conclusion is because the header file declares that symbol as external but not weak. So the compiler believes the symbol must be defined at linktime/runtime and hence its address cannot be zero and hence that code can never be executed. unlike the linker which lets you link an entire framework weakly I don’t know of a version of #import which lets you import an entire framework weakly, effectively defining every symbol as weak. So there’s a mismatch between the header import and the library link. Would be nice to have an #importweak directive to match the weak link. You can redeclare the extern as __attribute__((weak)) after you import the header but stuffing it in a variable somehow seems easier. ___ 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 Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Crash at iOS App Startup - What Could Have Gone Wrong?
I have it mostly working now. Thanks for your help. tl;dr: my .xib's were really messed up, it probably should never have worked but the problems became more apparent when I refactored a single large, rather messy source file. In the beginning I did not use a Navigation Controller; I added that later however I left in a .xib that I should have deleted. In addition I implemented the Nav. Con. only for iPhone, it was when I went to add support for iPad that everything went south. It was helpful and informative to validate my IBOutlets with assertions. Now my code has lots of assertions, I can leave them there maybe they'll find trouble later. I found what I believe to be an XCode 6.2 bug, I will file a report after I regress it a but more. I had a custom called called LifeIPhoneViewController, but when I entered the name, it was always saved as UIViewController. Once I noticed the problem I was completely unable to get the exact text LifeIPhoneViewController to stick; LifeIPhone was OK, as was any length of string that started with an alphabetic character. LifeIPhoneViewControlle without the final r would be saved. Not noticing this for quite a long time was a good part of my problem. I moved back to XCode 6.0.1 until I resolved it. I renamed that class to LifePhoneViewController. I think the text field is attempting to validate the entered text but getting very confused somehow; or maybe it is inappropriate code reuse, in that something that wasn't meant to validate really is. I managed to borrow the $99.00 for The Apple Tax. I'm going to a job fair tomorrow with twenty potential employers; I hope to demo Warp Life running on my iPad: http://www.warplife.com/life/ It is my take on the Cellular Automaton known as Conway's Game of Life; I've been into it since 1972. Thanks Again, Mike -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. ___ 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 Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Linking to MLMediaSourcePhotosIdentifier
On 23 Apr 2015, at 13:50, Graham Cox graham@bigpond.com wrote: On 23 Apr 2015, at 3:40 pm, Roland King r...@rols.org wrote: That’s because you didn’t read properly. Check if THE ADDRESS OF THE STRING CONSTANT is NULL. The address of the string constant is MLMediaSourcePhotosIdentifier I read fine. I may be confused, but my understanding is that extern NSString* const blah IS an address. Also, adding the explicit confuses the compiler - it then marks that code as dead, stating it will never be executed. I’m not sure how it comes to that conclusion exactly, but it tends to suggest that taking the address of an extern string constant is not a sensible operation. —Graham #import Foundation/Foundation.h #import MediaLibrary/MediaLibrary.h int main(int argc, const char * argv[]) { @autoreleasepool { NSString * const *test = MLMediaSourcePhotosIdentifier; if( test == NULL ) { NSLog( @The string appears to be missing - sad faces all around ); } else { NSLog( @Holy halleujia we have a string and it is %@ or even %@, *test, MLMediaSourcePhotosIdentifier ); } } return 0; } Works for me - in the positive case at least as I don’t have a 10.9 machine to test it on. ___ 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 Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com