Search results for

column

2,046 results found

Post

Replies

Boosts

Views

Activity

Reply to WWDC Platforms State of the Union Notes
There appear to be couple of things at play regarding rootless mode:/System/Library/LaunchDaemons/com.apple.rootless.init.plist - Calls /etc/libexec/rootless-init (registers with XPC?)/System/Library/Sandbox/rootless.conf - Configures the system locations to sandbox - an asteriks or name in the first column appears to override this globally or by executable name/System/Library/Sandbox/rootless.compat - Whitelisted executables? Legacy?/System/Library/Sandbox/com.apple.xpc.launchd.rootless.plist - XPC authorizations configThe one tool that can enable and disable rootless mode right now is on the Recovery partition under /System/Library/CoreServices/Security Configuration.app. It reboots the Mac immediately after applying the configuration change (it calls shutdown -r now).This appears to write a non-removable key (as far as I've been able to determine so far) named csr-active-config which the Security Configuration tool writes to. Notable is that this also appears to affect single user mode - I was not
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
IOS App Install Fail Over The Air
Hi, I'm using Xcode6 and created a test app for ipad. It compiles and runs fine in simulator. My next step is to distribute it using adhoc distribution mechanism. Here is what I've done1. Using Keychain Access to create a public/private key pair.2. Load it up into Developer Center to create a certificate, then download it.3. Add my ipad UUID under Devices.4. Create a adhoc provisioning profile by including my ipad in it, I only have one device in Member Center. Let's call the provision MyProv.5. Run the .cer file by double clicking it.6. Download the .mobileprovision file from Member Center to desktop. Then double click it.Now, in Xcode, under Build Setting, I change Provisioning Profile Debug and Release entry to point to MyProv, then run Product->Archive. When archiving the app, Xcode as me if I want to use my key created in step 1 above to sign the bundle. I allow it. I also choose to Save for ad hoc distribution when asked. In the summary page, I can see the Provisioning Profile column shows '
2
0
1.7k
Jun ’15
Reply to Tokenupdate
Hi,if you're storing the tokens in a database (e.g. MySQL) you can set the SQL UNIQUE constraint for the column containing the tokens; this prevents a token from being stored twice. The UNIQUE constraint exists in MySQL, SQL Server, Oracle and MS Access databases. The following SQL statement creates a UNIQUE constraint on the 'Token' column when the DeviceInformation table already exists:ALTER TABLE DeviceInformation ADD UNIQUE (Token)All the best,Alex
Jun ’15
Reply to Playground not displaying output
No, the right column is blank when creating a new playground, too.I just updated to the 10.11 beta, and the issue is the same there.After sitting for about ten minutes, an error popped up:Error running playground.Failed to launch iOS stub for playground execution:error: no process found with ID 3436.I recall a similar error in 10.10.3.
Jun ’15
Forum Design - A Step Backward
First, the light gray fonts are exceeding difficult to read.Second, at random times, I am told my password has expired with a form to reset the Apple ID password WHICH IS WHAT I DO NOT WANT TO DO (multiple devices, multiple software, etc. all would have to be updated - dozens of times typing in 14 character nonsense)Third, I'm sorry, but I can't find anything I want without guessing and opening up every item, e.g. developer forums, and then when I think I found what I want, I click on it, wait, and find I have to click yet another link that appeared out of nowhere.For those of us who just want to go quickly to areas of interest, can we please just have ONE page with a table of contents, perhaps even two or three columns, with JUST black or dark blue links, no graphics, and we can just find what we need quickly (because we can read and do not care about pretty icons).Thank you.
4
0
516
Jun ’15
Reply to NSTableView dynamic cell row height?
I’m afraid there’s no magic bullet for this. PeterNeg is right that you have to use -tableView:heightOfRow:, but it’s quite complicated to set up, because you’ll need to maintain a cache or row heights (so that you don’t recalculate them every time your delegate is queried, which will slow things down), and you’ll have to do all the height calculations on your own using NSLayoutManager methods. You’ll also need to observe changes to the frame of the edited text field, and changes to the text, and tell your table to resize accordingly.Below is a full breakdown of how I achieve this in my app. Mine is done in NSOutlineView and in Objective-C, but the principle is the same, so you can adapt this for NSTableView and Swift.1. Keep a dictionary of row heights. This will store the row height NSNumber against a unique ID of some sort associated with your model object.2. Maintain an isRecalculatingRowHeights BOOL.3. Implement a -recalculateRowHeights method which:a. Removes all objects from the rowHeights dictionary.b
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
Problem with Overlapped Textures and Transparent Pixels
Sorry if this is the wrong place to post, but like many others have pointed out there is no spot in pre-release for xcode 7 questions (please move message if I'm wrong).I am building a single image by overlapping two or more images.I'm using a texture atlas containing layer 1, 2, 3, etcI set the anchor point to 0,0I draw the first imageI load the next imageset the anchor to 0,0and draw it on top of the first.the first image is 14 pixels wide and 14 pixels tall (no transparent pixels)the second image is also 14 pixels wide and 14 pixels tall, but it has a fully transparent pixel around it (so the actual image is 12x12)In xcode 6 I would see the second image centered on top of the first.in xcode 7 I see the second image position in the bottom left corner of the first image. It appears to be cropping out the blank pixels.I know in the past people have suggested using a 1% alpha pixel rather than fully transparent to work around this issue. However, I did not have this issue in xcode 6.So why is xcode 7 cropping
6
0
1.4k
Jun ’15
Reply to Getting NSBrowser+NSTreeController to recognize its delegate
I slept on the problem and managed to find a workaround, although it's not a complete one.If I implement the delegate method -browser:numberOfRowsInColumn:, NSBrowser recognizes my object as an old-style delegate and will send all of the optional delegate methods. However, as I mentioned, this also severly limits the usability of NSBrowser because now calls to -itemAtRow:inColumn: and similar methods throw an exception that they are not supported.My solution (and by solution I mean hack) is to subclass NSBrowser and implement my own -itemAtRow:inColumn: method, like this:- (id)itemAtRow:(NSInteger)row inColumn:(NSInteger)column { NSMatrix* columnMatrix = [self matrixInColumn:column]; NSCell* cell = [columnMatrix cellAtRow:row column:0]; return cell.objectValue; }Since all of the cells in the NSMatrix are bound to the objects in the NSTreeController, the item of any given [row,column] is a well-known value. (Why NSBrowser can't do this is beyond me.)It doesn't solve the problem of -p
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
Xcode - Offline access to API documentation, class reference
Hi everyone,In Xcode I want to be able to access API docs and class reference etc even when I'm offline. However for some reason it's only available when I'm online.I'm using Xcode 6.3.2. I've already gone to Prefreences -> Downloads -> Documentations and downloaded the items iOS 8.3 and Xcode 6.3 (not doing Mac OS developmenet so left it out). However if I'm offline and go to Help -> Documentation and API Reference, I can see the content menu on the left hand side (root items are: iOS 8.3, OS X 10.10.3, Xcode 6.3), however if I click on any of the items under iOS 8.3, the right hand side remains blank and says No Content on the middle column. Items under OS X are the same but that's expected. Curiously, the items under Xcode 6.3 are accessible. Any help will be much appreciated!CK
1
0
3.1k
Jun ’15
Adding test target not work in Xcode 6
Hi,I am trying to add a test target in my current project using + sign at the bottom of the left column of Test Navigator (XCode 6.3.2). The target is created but never appear in the left column... and also, not appear in the test section of my scheme. It seem that this problem is related to my project, because it is working perfectly with template projects provided by XCode. My project document format was set to XCode 3.2, and now is set to 6.3, but it is still not working.Do you have an idea?Thanks!David
0
0
222
Jun ’15
Swift Core Data Relationship to Same Entity
Hello,i'm new to Swift Programming and I'm struggling with Core Data a bit.My Data Model looks like the following:I have Items with multiple values like id, name, description, etc... nothing special, BUT Items can have parts that they are made of.For example:Item1ID: 1Name: OneParts: Subitem1ID:2Name: SubOneSubitem2ID: 3Name: SubTwoParts: Subsub1ID:4Name: SububTwoItem2ID: 5The setup in the xcdatamodelc is fairly simple, but i don't actually know how to fill it with data and save it.The data comes from a mysql database (there is a column isPartOf which specifies the parent-child relationship).I haven't found any resource on google which is addressing a similar setup, can anyone help me with my problem or knows Links/Books with information that can help me?Thank you
0
0
509
Jun ’15
Reply to Consistency in parameter names
I agree with this sentiment.If I want to call a function/method as `moveBy(x: 3, y: 5)`, is there any reason why the syntaxfunc moveBy(x x: Int, y: Int)was preferred overfunc moveBy(x: Int, y: Int)and then just require an `_` otherwise?This seems counterintuitive to me as the goal of the parameters naming change was for consistency. Here's a comparison:Call siteSwift 1.xSwift 2.0Why not?moveBy(1, 1)func moveBy(x: Int, _ y: Int)func moveBy(x: Int, _ y: Int)func moveBy(_ x: Int, _ y: Int)moveByX(1, y: 1)func moveByX(x: Int, y: Int)func moveByX(x: Int, y: Int)func moveByX(_ x: Int, y: Int)moveBy(x: 1, y: 1)func moveBy(#x: Int, y: Int)func moveBy(x x: Int, y: Int)func moveBy(x: Int, y: Int)Compared to the current implementation, I find the last column to be readable and intuitive wether I know about swift's naming rules or not.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
NSTextView multiple columns
HiI want to display text in multiple columns in OS X using Cocoa.NSTextView works well for one column, but which approach should I choose to handle multiple columns?Any advice or hint is welcome...Thanks
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
896
Jun ’15
Reply to NSTextView multiple columns
The general approach is outlined in the Cocoa Text Architecture Guide: Text System Organization – Common Configurations. Look for figure 3-5. You create the components of the text system separately, rather than just creating a text view and having it create the other components for you. You use a single text storage object, a single layout manager, and multiple text containers and text views. Each page-column is associated with a pair of text container and text view. You implement a delegate for the layout manager and implement -layoutManager:didCompleteLayoutForTextContainer:atEnd: to add additional columns and pages, along with their associated text containers and text views, as necessary to accommodate the text.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
Reply to Disabling edit on single-click in view-based NSTableView?
I just posted a reply with a sample project showing the issue, but of course, now that posts with links in them are moderated, that may not show up for a day or so. But essentially, it seems easy to reproduce this behaviour in a sample project as follows:1. Create a view-based NSTableView and hook it up to an NSArrayController (arrangedObjects and selectionIndexes bound to the array controller, the objectValue.key of the cell view text field bound to the cell view etc).2. Set the cell view's text field to be editable.3. In code, set the content of the array controller to an array of dictionaries simply containing e.g. @[@{key: @Foo}, @{@key: @Bar}] (but with a mutable array and dictionaries, of course).4. Set a -doubleAction on the table view (a dummy action will do).Once you've done all of the above, simply clicking on in the text area of a row causes it to be edited (after a slight delay) without needing to select it first and then click again. (2) and (4) are clearly the key culprits here. Back with cell-b
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15