In [2382]: Enabled GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS so we get a bunch new warnings if we’re using deprecated methods. Autocompletion usually helps to avoid it when writing new code, but we should review the old code. 19 warnings only
Recent Updates RSS Toggle Comment Threads | Keyboard Shortcuts
-
Jorge Bernal
-
Jorge Bernal
I plan to write some coding guidelines for iOS extending what’s here (not much, I know), but one thing I need to warn right now, just in case:
If you add any external libraries, don’t modify them.
That said, if you need to change them to fit our app:
- Make it generic enough to be accepted by the original developer, if it fixes a general problem
- Try creating a subclass, or find other workaround, if it’s too specific to our app
- If you absolutely must modify the library, at least commit a clean copy of it to svn, then apply your changes and commit. This way we can have a diff of what we’ve modified and update the library easily in the future
This came from trying to update the XMLRPC library. Our version was really old, the first version committed to our svn already had modifications, in all this time they moved from svn to git losing the history. There was no sane way to figure out what our changes were compared to the original version to port them over the latest version, so I had to take a guess (only picked the changes after it was added to svn)
-
Jorge Bernal
Feature request from twitter: better support for finding/editing old posts:
@WordPressiOS I'm requesting a feature: The ability to search or better options to go through history of blog posts. I got 1000+ posts.—
(@XVerse10) December 16, 2011@WordPressiOS I got 1000+ post it takes me forever to get to a post to edit from earlier this year.—
(@XVerse10) December 16, 2011@WordPressiOS When you do get to it. It doesn't save your position meaning to get back to it I have to start scrolling all over again.—
(@XVerse10) December 16, 2011First we’d need support on the XML-RPC api. In theory,
metaWeblog.getRecentPostssupports everything that WP_Query supports, but I can’t find search on the documentation.But even then, how do we decide what to keep? Most of the users will only care about the latest posts if anything, and keeping 1K posts in the app would add disk space, and possibly slow down the app.
-
X-Money
Why you can’t use the same or similar API that Apple use in the Mail app? Everyone has a search or category API for iOS. Amazon, Google, EBay. You gotta reverse engineer their app. If you can make WP search and editing of posts like Apple Mail that will be awesome.
-
Jorge Bernal
Well, the API that mail uses (IMAP) is for mail servers. Adding a search box to the app interface is relatively easy, the problem is asking your WordPress site to search. As far as I know, there’s no API for that yet.
That doesn’t mean it’s impossible, but we’d have to wait until WordPress 3.4 (at least) to be able to make it.
Anyway, what’s the typical case that makes you go so often to old posts?
Do you get a comment on an old post and correct something? Do you search for old posts as a template for new posts?
-
-
Darnell Clayton
Meh! I hate to say it, but I see this as (more or less) an unnecessary feature that you need to say no to (at least right now).
If users need to edit a post, then why not enable it on the mobile web side, allowing them to log in, search, etc. and edit from there? (also is there a plugin for that?)
Adding this feature would indeed slow the WordPress app down, and it’s better to wait for an API. To paraphrase Steve Jobs, “learn to say no to feature requests.”
-
Manuel Rubio
I believe that WordPress release 2.9.3 has been well and you must have well-taken care of with the modifications so that it does not happen like with version 2.9.2
-
-
Isaac Keyet
Copy/Paste issues are fixed in 2.9.3, which just went live. Sorry about the trouble, and be sure to let us know how this update works for you.
Copy/Paste issues fixed! Please update to 2.9.3 and let us know how it works. cot.ag/sz28T2—
WordPress for iOS (@WordPressiOS) December 12, 2011-
Manuel Rubio
Thank you very much. I have try it and works very well
-
-
Isaac Keyet
WordPress for iOS 2.9.2 is out! It’s a bug fix update that improves stability and adds a notification about new updates being available.
2.9.2 is out: Stability improvements and an "Update Available" notification. cot.ag/9Ft5OW—
WordPress for iOS (@WordPressiOS) December 05, 2011-
Manuel Rubio
With old version 2.9.1 was very comfortable TO COPY and PASTE from the application Notebook of iPhone to application OS. Now CAB DO IT. From version 2.9.2 a COMMENTARY CANNOT BE PASTE and is necessary to write it again. This is a GREAT FAILURE
-
Isaac Keyet
Sorry about that, this has been fixed in 2.9.3. Please update the app to regain copy/pasting functionality.
-
-
-
Dan
I went to upload some images and when…
I went to upload some images, and when the custom dialog popped up, I also received the location allow dialog at the same moment. I couldn’t tap on anything until I switched to a different app, and then could respond to the location dialog.
-
Gloopy
We have had 3 customers now tell us about this
deffo a bug
-
-
Jorge Bernal
I’ve seen some crash reports on iOS5 with the following error:
‘NSInvalidArgumentException’, reason: ‘Cannot set metadata in read-only store.’
Looking at this thread and the dev forums, it seems like an Apple bug, but one user said:
My beta testers reported that syncing with iTunes seems to clear this error up- so my guess is that iTunes sync is fixing a permissions problem.
Let’s hope they’ll fix that in a next release, since it’s about 20% of the crashes for 2.9.1 right now
-
Jorge Bernal
I just emptied the 3.0 milestone on trac so we can start fresh.
I’ll start working on the roadmap next week, and everything should have it’s own ticket so we can easily keep track of the changes and progress.
-
Jorge Bernal
Crash Report status for 2.9.1:
- Fixed freeze when picking photo from library [2239]
- Fixed crashes on iOS 4.0 [8.58% of crashes] [2236]
- Maybe fixed crash when memory warning issued while adding/selecting categories [4% of crashes] [2240]
- Try to avoid crash on weird cases when picking a photo [2.47% of crashes]. Can’t reproduce, but I’ve tried to make it not crash on unexpected values [2241]
Unsolved crashes:
- There’s a Safari bug on iOS 4.0 which makes WebCore crash [5.29% of crashes]. New version of the reader in 2.9.1 will at least not make it happen when users are somewhere else in the app, but will still crash when loading the articles that trigger that bug. That would also help pinpoint what the bug actually is
- The crash on ojbc_msgSend [4.47% of crashes]. We’ve had this one for a long time, and happens in very random places. At least users are now giving more details of what they were doing when app crashed. Cleanup and NSOperation in 3.0 will probably help getting rid of this one
- NSObjectInaccessibleException [3.17% of crashes]. In some edge cases, the app tries to show a comment which has been deleted (or marked as spam). It looks like it happens when the app was in the background and just launched opening a comment.
- The “Deallocation Problem” (more info) [2.59% of crashes]. Nasty bug which happens when a UIViewController does something on the background and gets released before the background thread is finished. That causes dealloc to be called from a background thread which is fatal when you have a UIWebView. Let’s move to NSOperation and stay away from performSelector* on 3.0
-
Jorge Bernal
Also, there’s a “crash” for some users when opening the comments tab while posts are still loading
@WordPressiOS My app usually works great, but the past few weeks it crashes any time I go on to the Comments tab. Help?!—
Alece Ronzino (@gritandglory) October 05, 2011I saw it happen live on WordCamp Lisbon, but it didn’t leave any kind of crash log. When user went to visit and refresh a different blog, it was suddenly fixed.
-
Stefan
What’s about Custom-Post-Type function in the App? Would that function coming with that new version or with v3.0 of the app?
-
Jorge Bernal
Probably not going to make it for 3.0, although we want to support them somehow in the future
-
-
Jorge Bernal
Fixed one of 2.9 crashes in [2236]. We were using some constants defined on 4.1, but we still support 4.0
If you’re unsure in the future check the documentations, or run this:
ack -h -a '_AVAILABLE_STARTING\(.*, ?__IPHONE_4_[123]' /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks
After looking at those results, I haven’t found anything else we use unsupported in 4.0
-
Isaac Keyet
Nice! Tweeted.
Crash fixed! A stability/performance update is underway… ios.trac.wordpress.org/changeset/2236—
WordPress for iOS (@WordPressiOS) October 03, 2011
-

Jorge Bernal 8:39 pm on December 16, 2011 Permalink |
I also plan next week to move all the libraries to a Vendor directory, so it’s easier to differentiate our code from third party. Since we can’t have git externals/submodules in svn, I was planning to just store a list of libraries in a text file. Something like this:
I’ve been looking at dependency management for Objective-C like CocoaPods and VendorKit, but I’m not sold on any of those yet.
Dan 8:59 am on December 28, 2011 Permalink |
Speaking of external libraries, AFNetworking has a bunch of example code in it. We should remove that at some point.
Jorge Bernal 10:53 am on December 28, 2011 Permalink |
Not 100% happy about it, but it goes to the “don’t modify”. Since we can’t have them as externals/submodules, I tried to keep the files the same as upstream, and add only what we need in the Xcode project.