Search results for

show when run

112,671 results found

Post

Replies

Boosts

Views

Activity

BLE scan may freeze randomly
I'm currently working on an app that handle communication with a BLE device. One of my constraint is that i must connect to this device only when i have to send a command or read data. I must disconnect as soon as possible when it's done, to allow other potential users to do the same.One of the features of the app is the following :Users can enable an automatic command while the app is in the background. This automatic command triggers if the device hasn't been detected within 10 minutes.My app scans until it finds my BLE device.In order to keep it awake when i need it, i'm restarting the scan each time, because of the CBCentralManagerScanOptionAllowDuplicatesKey option ignorance.When it's detected, i'm checking if the last detection was more than 10 minutes ago. If that's the case, i connect to the device and then write into the characteristic corresponding to the service i need.The goal is to trigger this device when user come in range. It may happen a few minutes after being out of range such as a few hour
5
0
3.6k
Jun ’15
NSTableView dynamic cell row height?
I'm just playing around with Xcode 7 and trying some Objects in the Interface Builder Library for OS X. One problem I can't solve myself:I drag a new NSTableView to my ViewControllerScene. I can add text to the cells and I can add text in a new line, by pressing the ALT-key while hiting the Return-Key. So I have text in 2 or more lines. When I left the cell, the TableView only shows the first line, the rest of the text is invisible.How can I change the cell-height of this cell dynamicly? [If the users text have 3 lines, the height of this cell should show 3 lines height, if the users text is in the next line cell just 1 line, this row should be just big enough for 1 line.]Is there a magical attribute I don't see? Or how would I do this dynamic cell row height in Swift for NSTableView's Cells / Rows?
Topic: UI Frameworks SubTopic: AppKit Tags:
7
0
9.2k
Jun ’15
Reply to Is there any way to keep a watch app active in watchOS 2?
This is a good find.The documentation is a little confusing. It says that the app continues to run in the foreground, which seems to imply that my app can send out a haptic to alert the user of something.But it also states that the 'app appears whenever the user wakes the device'. I gather this to really mean that the screen turns on when the user presses the button or moves his/her wrist. The watch is really not 'sleeping' - it's actively running the application, updating the screen, etc. You just can't 'see' the screen unless you 'turn on the screen'.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Asynchronous Design Patterns with Blocks GCD
I'm a newbie . Is there an example code base I can look at that shows how to 1 ) fire up JSON queries/reposes to/from multiple websites in parallel,2) have each taks/thread process info and write it to a central (shared) array of objects3) then wait for a parallel tasks to finish3) process the info collected on shared array data.I'm assuming this is about correct usage of asynchronous queues, and some tricks with a synchronous/wait for completion method. need to see the handling of hte dance. Also how to ensure the common global data object being written to safely from multiple parallel tasks.pointers to example code much appreciated
3
0
997
Jun ’15
CoreMotion and iBeacons in background mode
Hello All,I’ve created application which logs motion activity of user with CoreMotion framework and M7-chip functionality (I’m using CMMotionActivityManager).Application works fine in foreground. But I need to check that event occurred in 3-7 seconds frame in background mode.And I need to range iBeacons - check entering to specified zone in background mode and activate my test for the motion event.According following review http://developer.radiusnetworks.com/2013/11/13/ibeacon-monitoring-in-the-background-and-foreground.htmlthe time for detection is about 4 minutes (in average and up to 15 minutes) in background mode.Does exist any method or workaround to grab data for motion activity and ranging iBeacon in the background with better accuracy?- I need to check that event occurred in 3-7 seconds frame and notify user.My concept application works in the following way:1. I’ve activated background mode flags for CoreLocation and Audio (it plays audio signal on event detection).2. At start it requests authorizati
2
0
5.6k
Jun ’15
iOS 9 carrier name issue iPhone
Why always showing iPhone carrier name on the left top corner? I have ATT carrier. I tried to reset network settings its works, but after reboot turns back to iPhone How to fix it? Cause i dont understand when good signal, when bad... when carrier avialable, when not...iPhone 6, AT&T 
11
0
3.3k
Jun ’15
Calendar events not syncing
Watch 2, iOS9 on an iPhone 6 - Everything seems to be syncing now except my calendar. Watch app shows that the calendard is set up, all the events are on my iPhone correctly, nothing shows up on the Watch in the calendar app or in the glances or on the watch face.
20
0
4.0k
Jun ’15
NSURLConnection times out after reopening app
Hello,In my app I use a NSURLConnection to upload some content. Everything works fine except when I reopen the app after like one hour.On my personal wifi, everything is fine, but when I connect using my operator data plan (I never observed any issue like this on other apps), the first NSURLConnection times out. If I try again, the operation succeeds.I use a standard NSURLConnection.NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:delegate];Using[NSURLConnection sendAsynchronousRequest:request...]also leads to a timeout.On another thread on the Apple developer forum somebody suggested to run a packet trace, which I did. The request does not seem to be sent.I'm a bit out of ideas, do you have one ?Thanks a lot!
Topic: UI Frameworks SubTopic: AppKit Tags:
4
0
598
Jun ’15
Xcode 7 beta pegs CPU on startup doing git housekeeping
When I start Xcode 7 beta it spends a lot of time doing some very hefty CPU work. Diagnostic Reports show this: 75 ??? (com.apple.dt.Xcode.sourcecontrol.Git + 42837) [0x10d8c6755] 74 git_status_list_new + 961 (libgit2.dylib) [0x10d9c9805] 74 git_diff_find_similar + 2159 (libgit2.dylib) [0x10d9c297b] 51 similarity_measure + 784 (libgit2.dylib) [0x10d9c3804] 40 git_diff_find_similar__hashsig_for_file + 14 (libgit2.dylib) [0x10d9c20b5] 17 git_hashsig_create_fromfile + 73 (libgit2.dylib) [0x10d9bab5d] 17 git_futils_open_ro + 18 (libgit2.dylib) [0x10d9ac8d1] 17 __open + 10 (libsystem_kernel.dylib) [0x7fff93b71fca] 7 close + 10 (libsystem_kernel.dylib) [0x7fff93b72ba2]It seems to happen every time I open Xcode.
1
0
1.1k
Jun ’15
3 major subcategories of the Games category not working correctly
Casino, Dice, and Educational subcategories of the Games category are not working correctly:On the desktop U.S. Yosemite 10.10.3 using iTunes 12.1.2.27: They are not listed in the Games subcategories list.On U.S. iOS 8.3: They appear in the featured list under the main Games subcategories list but they do not report proper content, instead they show the content from the main Games category.Also glitching in the web (from the desktop Safari 8.0.6 Yosemite 10.10.3) at the iTunes web version, go to the links below and then follow the View in iTunes link on the page in the upper right to see some iTunes whackiness:CasinoDiceEducationalThis has been glitched for a while now, maybe since the March app store outtage event. Really negatively effecting sales for apps in these categories. Let's hope 8.4 and El Capitan resolve this issue. hint.. hint..
7
0
1.4k
Jun ’15