Search results for

column

2,049 results found

Post

Replies

Boosts

Views

Activity

Reply to vLookup In App?
No, the one thing I know is it starts at zero. I started the route at zero, I think I forgot to start at zero for the columns, though. I'll have to try when I have a computer near me tonight! I just wanted to make sure there was no limit, as I wanted 11 columns and 9 rows.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’16
Reply to Xcode 8 not showing iOS 10 simulators
Just to be sure, have you tried the Xcode menu option window | devicesOn the left column click on the + and add a simulator.Be sure to select a device type that supports iOS 10 and select the OS version and click create.iOS 10 devices should be there by default. I've had weird behavior in the past when updating to a new version.
Sep ’16
Reply to Xcode 8 Playground results not being posted
The issue is solved.First of all, I naturally assumed that the Results column of the Playground window would spring open when there were results to display.It wasn't until I was watching a YouTube video on Swift 3.0 that the answer was presented. The instructor typed some code into the Playground window and then ......... He dragged the Results pane in toward the code and Voila! there were the results.Unbelieveable!
Sep ’16
Reply to Xcode Source Editor Extension - single character selection range
Hey! Your code logic isn't right.start.column is the offset of te cursor from the BEGGINING of the line, so column zero would be exactly the begining of the line, even if there are any spaces or tabs.Column zero would be right before the first letter of this sentence.So if you want to know if theres no selection you should instead check:start.column == end.column // No selectionOr if you want to check for only one character or n number of characters selected you should do this:start.column == (end.column - 1) // only one character selected start.column == (end.column - x) // only X number of characters selectedBTW, I finished my xcode extension two days ago and I'm still not able to use it in Xcode 8 final because of a **** bug. 😠 but that's another problem.Hope this helps 😉
Sep ’16
Sorting of isometric SKTileMapNode incorrect?
Im programmatically using SKTileMapNode. The code is C# (Xamarin.iOS) but should be readable by every Swift/ObjC developer.The problem is that the sorting of tiles in isometric projection seems to be incorrect and I cannot see why. To test, the map has 1 row and 5 columns. See the screenshot:https://dl.dropboxusercontent.com/u/111612273/SVhjD.pngThe tiles at 0|0 and 2|0 are in front of the others. The pyramid styled tile at 4|0 however, is drawn correctly in front of the one at 3|0.I'm using two simple tiles: The first one has a resolution of 133x83px and the second one is 132x131px:https://dl.dropboxusercontent.com/u/111612273/bcIvP.pngandhttps://dl.dropboxusercontent.com/u/111612273/wzCZV.pngThis is what it looks like in Tiled and what I am trying to reproduce: https://dl.dropboxusercontent.com/u/111612273/66G6p.pngThe tile map is setup and added to the scene using the following code:var tileDef1 = new SKTileDefinition (SKTexture.FromImageNamed (landscapeTiles_014)); var tileDef2 = new SKTileDefini
7
0
2.1k
Sep ’16
SpriteKit - TileDefinition and userData being update for all tiles?
I thought I would create a tile map with the new Tile Map Nodes available in iOS 10.I have a tile which if you stand on it, it will crumble. So I though I would place a userData field called timer in the tileGroup definition.func crumbleTile(pos :CGPoint, dt : TimeInterval){ let column = roomMap.tileColumnIndex(fromPosition: pos) let row = roomMap.tileRowIndex(fromPosition: pos) let objectTile = roomMap.tileDefinition(atColumn: column , row: row) if var timer = objectTile?.userData?.value(forKey: timer) as? Double { print(tile pos (column),(row)) print(timer-from tile:(timer)) timer = timer - dt objectTile?.userData?.setValue(timer, forKey: timer) print(timer-update tile:(timer)) if timer < 0.0 { //move to next frame if var crumbleFrame = objectTile?.userData?.value(forKey: crumble) as? Int { crumbleFrame = crumbleFrame - 1 print(crumble:(crumbleFrame)) objectTile?.userData?.setValue(crumbleFrame, forKey: crumble) if crumbleFrame < 1 { //delete tile print(delete tile) removeTi
2
0
1.1k
Sep ’16
Crash report names not demangled and mapped to lines?
Hi,Wondering if others have had this problem or if I'm doing something wrong.I download a crash report in Xcode's organizer window (Xcode 8). I have the archive, with the dSyms, so it is symbolicated. I've checked out of git the exact code that was used to build the archive. But still, the function names (from Swift) are mangled, like _TTSf4g_n_n__TFC8iMyFooApp25SomeViewController. I could live with mangled names, but when I Open in Project... I can't go to the line of code either. The stack frame icons in Xcode debug navigator are the generic brown icon that looks like a building with 3 columns. [1] Clicking on it does nothing. Rob[1] Please allow image attachments in these forums.
0
0
599
Sep ’16
Reply to Tabbing between cells in view-based table views
Yes, I noticed the tab behaviour is even worse on Sierra. I spent an hour this week overrding the standard behaviour in an NSTextField subclass for use in tables to get better behaviour. I've overridden -textDidEndEditing: looking for the tab or back tab text movements. Then I look up the ancestor chain for the table view, get the row and column for the text field and iterate over subsequent columns and rows looking for the next editable text field in there, giving it first responder status if I find one, otherwise falling back on default behaviour. It's not a particularly elegant solution, but at least it works and doesn't seem completely random like the built-in behaviour.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’16
Reply to Xcode 8 recompiles every file every build
@Ewam Just would like to make sure that this issue is being worked on by your team. It seems to affect a bunch of people. I see two stackoverflow questions about it, one including a 500 points bounty: http://stackoverflow.com/questions/39456223/xcode-8-does-full-project-rebuild and http://stackoverflow.com/questions/39588223/xcode-8-recompiling-complete-code-everytime.It still happens with Xcode 8.1, even when there is no change at all. I'm willing to share my app's source code privately if it can help investigate the issue. I tried to create a sample project but wasn't able to reproduce. Can you let us know what we can do to help investigate and/or escalate? Happy to help.To give you an idea of how annoying it is: every time I make a change, or really any time I build my app – even without a change –, the entire project is recompiled. It means my feedback cycle is up to 10 minutes instead of ~30 seconds. It is totally impossible for me to work under those conditions.In the meantime, I'll try the workaround h
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’16
Reply to Xcode 8 recompiles every file every build
Go to Product -> Scheme -> Edit Scheme. Select Build in left side column and uncheck Find implicit dependencies But this flag should remain checked when you are building the project for first time..This workaround works great.One thing I notice is that I have to do a clean before the first build, otherwise won't work. After first build, uncheck Find implicit dependencies. The following 10 builds take no more than 30s 😉 . Unfortunately, after about 10 builds, it will start recompiling all swift files. Not sure if some changes I made trigger recompile or something else.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’16
Reply to How do you create a new version?
On the left column for your apps, look for + VERSION OR PLATFORM, click iOS. Then fill in 2 for the version, and be sure in Xcode your Build Settings also have 2 (make that change on both Targets, the app and extension). You can choose whatever version number you want, it could be 1.1, its really up to you. If you've only changed one sticker, then you might just want to increment it up a decimal .Just be sure those numbers match exactly. If you use 2.0 on iTunes Connect, put 2.0 in Xcode. And yes, I seem to remember reading once that 2 and 2.0 aren't always treated the same when validated.
Topic: App & System Services SubTopic: General Tags:
Oct ’16
How to read and write to a table?
Hi,I have been trying for a while now to find a solution for an app I am trying to make for an A level project, I have messed around with code suggested on this forum for hours now however have not had much luck trying to get it to do what I want. I thought I would try to describe a bit better the problem I am trying to solve as I now know a little more what I need to do.I essentiallly want to have a tableView that has items, each of which have a few different headings with different values. Basically like an excel spreadsheet, the row heading being the table item title and each column heading being a title for a value, each row having a different value for the same title. I need to be able to read and write to this table using multiple steppers to increment a value for each column heading and all this then need to be readable. I also need each entry/row to have a time and date stamp of when it was entered.I hope this is a little clearer and easy for you to understand what I'm trying to do a
4
0
593
Oct ’16
Reply to How to read and write to a table?
You haven't actually described a problem or asked a question. So:— What platform, macOS or iOS?— Are you stuck at creating the table view itself? Or at populating the rows? Or at designing the structure of the columns within the rows? Or at implementing that design?— It's not obvious how you expect to use a stepped to increment column heading values, or even what that means, really. A heading is a heading. It may contain a numeric component that increments in value across the columns (e.g.), but a stepper is a UI element that allows a user to choose a number from a range of numbers.Keep in mind that macOS table views have an explicit concept of a table column, while iOS does not. Either way, you should be able to approach a solution to your problem incrementally. Start with simple rows, and add information (and UI elements) horizontally for each of the structural pieces that you want for columns. There's no particular advantage in trying to implement all the detail
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’16
Metal crash in safari, preview
Does anybody see this kind of crashes in Metal? Some websites crash in Safari, Preview does that too when I open some PDF files. AndreyProcess: Preview [48056] Path: /Applications/Preview.app/Contents/MacOS/Preview Identifier: com.apple.Preview Version: 9.0 (909) Build Info: Preview-909000000000000~2 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Preview [48056] User ID: 501 Date/Time: 2016-10-04 08:30:55.011 -0700 OS Version: Mac OS X 10.12 (16A323) Report Version: 12 Anonymous UUID: 4EE305FD-3BBA-86A8-08CE-9132E62E22D5 Sleep/Wake UUID: EAB2652F-FF1E-41C8-B161-15923C193146 Time Awake Since Boot: 710000 seconds Time Since Wake: 1300 seconds System Integrity Protection: enabled Crashed Thread: 11 Dispatch queue: CA::CG::RenderQueue Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: COREANIMATION, [0x2] 00000001_00000000_000032ff | 4_3_20000000000005d5 | 0_0_0000000000000000 | 0_0_0000000000000000 | C
1
0
1k
Oct ’16