Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 12    Views: 111

mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
04/06/15 01:20 PM (9 years ago)

Mac Image Gallery - 64bit Compatibility Issues

Hi folks! When upgrading a project to support arm64, the only plugin that seems to break is the MacImage Gallery - this has been discussed before here: https://www.buzztouch.com/forum/thread.php?tid=9780F4E322D224C3CCCCC87 I was getting the two image scrolling issue, so I re-downloaded the plugin (to make sure I had the latest version), and even deleted the plugin in the app and re-created it to fix any corrupted JSON that might have come in. Now all my local images just come up as red x'es, so it's worse now, LOL! Here's the log, for those tinkering: http://pastebin.com/CMJ0wZQ5 For warnings, you can see the ones @Absentia posted in the thread above. Any help would be appreciated! I've sent Keith a private message :-) Cheers, David.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/06/15 01:31 PM (9 years ago)
Yeah have you checked this thread: https://www.buzztouch.com/forum/thread.php?tid=3740A973803AC0A61048EE0 I've also re-downloaded a project and it has issues. Previously it was working with Absentia's fix..
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/06/15 01:37 PM (9 years ago)
Oh dude, how did I miss that thread! Now I've gone and bothered Mac & Absentia with a PM. Feel bad. Working on the fix now. Muchas gracias @mysps! David.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/06/15 01:40 PM (9 years ago)
No prob but while you're at it can you confirm that it still works because it didn't the last time i tried during the end of march.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/06/15 01:41 PM (9 years ago)
Totally. Bad news. 1. On a tabbed app, the gallery left and right bottom bar appears under the tabs. 2. Local images don't seem to be found. I'll try custom URL's and report back. David.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/06/15 01:46 PM (9 years ago)
Good news. Custom URL's work great - no duplicate images, all works fine now with @Absentia's fix! Local images are definitely a no go. I made sure the images we're in my project and added to the target, double checked for latest JSON, all that jazz - no go. Not a huge issue, but an issue. Possible hint: When you open up the popup to update the name, image URL or local image for the gallery, it doesn't remember the local image name, it comes up empty, wondering if this might be a hint towards the issue, it's possibly not getting saved at all. Wouldn't mind fixing the Tabbed App compatibility while we're at it, I'll give it a go and see if I can figure out why it's going under and not on the top, I'll report back if any luck. Edit: the tabbed bar problem only seems to occur on latest iOS8, arm64, working fine in my iOS6 app. Hope this helps someone. David.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
04/06/15 03:55 PM (9 years ago)
This is totally on me. Had meant to upload new one but with that fix all was well. Was trying to add new stuff prior to update.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/06/15 04:16 PM (9 years ago)
It will take time for us to forgive you Keith, lots of time, but this apology is a start. Excited to see the "new stuff" you're adding to an already awesome plugin! I think I fixed the tabbed bar issue, will send over another PM with the details once I make sure I'm not making a fool out of myself again, LOL. :-) Cheers! David.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/07/15 06:40 AM (9 years ago)
Nice sleuthing there David! Please post the two fixes so that's it's all here in one bundle. -- Niraj
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
04/30/15 07:27 PM (9 years ago)
G'day All, I've been watching this thread for a few weeks hoping for some updates! Has anyone fixed the local images issues? (I can live without the previous next buttons but really need local images on the app) @mysps I noticed in another thread you spoke about alternate solutions ... do you mean like a jquery html option like photoswipe? TIA Cheers Darrel
 
gatorcade
Code is Art
Profile
Posts: 35
Reg: Jul 17, 2011
Gainesville
1,150
like
06/07/15 11:04 AM (9 years ago)
Custom URL's work great - no duplicate images, all works fine now with @Absentia's fix! Can anybody explain this. Go no clue. :( Thanks
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/07/15 06:42 PM (9 years ago)
By custom URL's I assume they are meaning when you pull the image from an internet url rather than having the images loaded on the device locally.
 
gatorcade
Code is Art
Profile
Posts: 35
Reg: Jul 17, 2011
Gainesville
1,150
like
06/21/15 07:06 AM (9 years ago)
I did figure who Absentia is. Thank You so much. Here is his fix again: Absentia like 02/20/15 07:39 AM (4 months ago) Was having this problem myself for a long time, but I managed to figure out the solution - it's actually a very easy fix: Go to the Mac_zoomingScrollView.m file in your project. If you have added arm64 to your architectures then you should have a few warnings in this file. One of the warnings will be inside of the - (void)setIndex:(int)value method (around line 82). This is the line of code that is causing the problem: if (value == NSNotFound) All you need to do is change that line to the following: (value == (int)NSNotFound) So the only change that you are making is adding (int) before NSNotFound. Run your app and the image gallery should now be working perfectly
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.