Search results for

column

2,049 results found

Post

Replies

Boosts

Views

Activity

Reply to Setting radio button state without using Matrix
Hi, Thanks for taking a look-I know about the variables and IB bindings, I meant to write that I had tried all three ways...😊I have successuflly implemented the code in a test project (yay!) but in my actual app I'm running into a wall. I think it has to do with where the radio buttons are and when the code is called.I have an NSTableView and in one of the columns (the status column) I have the three radio buttons that I put there in IB. Their state should be determined by the value of the variable p.status which will either be Pending Approved or Rejected. I'm thinking that the code is called before the radio buttons are drawn and that's why it's not working...? What would be the best way to fix this?- (NSView *)tableView:(NSTableView *)table_view viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { Proposal *p = [list objectAtIndex:row]; NSString *identifier = [tableColumn identifier]; NSString *holdingValue; NSTableCellView *cell = [table_view makeViewWithIdentifier:ident
Topic: Programming Languages SubTopic: General Tags:
Nov ’16
Reply to Confusion about access groups and iOS extensions.
I presume you’re working on iOS (or watchOS or tvOS) here; if you’re developing for the Mac, things are more complex.You can think of the keychain as a database table, where rows in the table are keychain items and columns are various keychain attributes. One of those attributes is kSecAttrAccessGroup, the access group of the item. Here’s how things break down by API: For the query APIs (like SecItemCopyMatching), if you don’t supply kSecAttrAccessGroup in the query then it does a wildcard search, returning all items you have access to, that is, whose access group is contained in your app’s effective keychain access group list.OTOH, when your query contains a value for kSecAttrAccessGroup then: that value must be listed in your app’s effective keychain access group listitems are returned if their access group matches that valueWhen you create an item (SecItemAdd), if you don’t supply a value for kSecAttrAccessGroup then its access group is set to the default keychain access group.OTOH, if you do supp
Topic: Privacy & Security SubTopic: General Tags:
Nov ’16
Reply to Current Balance
If you go to the Search Ads page, then click on your user name in the top right (note: this only appears for me on desktop, NOT mobile for some reason), then Settings and finally on Payment Info you can see all your credit card transactions at the bottom. These should also get emailed out to you.Note that you can't actually see a balance here, so your free $100 credit doesn't actually show up. If you look directly under your credit card you should see a line with what looks like a UUID, followed by Expires 12/31/2016. This will at least let you know they've applied the free credit to your account.To see when it finally runs out, you're going to have to work that out yourself by looking at each of the invoices at the bottom. You sort of have to trust that Apple have applied it correctly as far as I can see, and just check once it runs out by when that happens on your invoices, or if you're like me, you'll probably reach the credit expiry at the end of December without having spent all of it. I jest slightly, i
Topic: App & System Services SubTopic: General Tags:
Nov ’16
EXC_BAD_ACCESS (SIGSEGV)
I'm trying to figure out why my application keeps crashing and could use some help in understanding the crash report so I know where to look for the problem. Here's the report:Process: Adobe InDesign CC 2015 [1334]Path: /Applications/Adobe InDesign CC 2015/Adobe InDesign CC 2015.app/Contents/MacOS/Adobe InDesign CC 2015Identifier: com.adobe.InDesignVersion: 11.4.1.102 (11410)Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Adobe InDesign CC 2015 [1334]User ID: 2115166540Date/Time: 2016-11-07 08:52:14.392 -0700OS Version: Mac OS X 10.11.4 (15E65)Report Version: 11Anonymous UUID: E1C64908-5CE2-7A89-F534-5CF580D4B2C2Time Awake Since Boot: 6700 secondsSystem Integrity Protection: enabledCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_BAD_ACCESS (SIGSEGV)Exception Codes: KERN_INVALID_ADDRESS at 0x0000005b00000018Exception Note: EXC_CORPSE_NOTIFYVM Regions Near 0x5b00000018: mapped file 0000000151a5c000-000000015210f000 [ 6860K] r--/rwx SM=COW --> JS JIT generated code 000
0
0
988
Nov ’16
This should be obvious
I want to read the messages on this forum. But what I see, are 10 messages going down the page and then nothing. There are older messages that seemed to have dropped off in space. It should be obvious when it comes to seeing older messages (like page 2,3,4 etc). But I see nothing that indicates a way to get to other pages.I see View All Posts at the bottom but when I click that I get new columns stating things like bookmarks, how many people have looked at my post, etc. Is it ME?Can someone help me out here?JR
2
0
531
Nov ’16
Reply to Multiple Selection nspopupbutton Mac OS X
The trouble with a drop-down menu is that it's hard for the user to see the whole list at one time, so there's a lot of scrolling around. This gets worse because the popup button could be anywhere on the screen, which might limit the available height for the menu.Apple's Human Interface Guidelines recommend using a menu-bar menu instead. That guarantees you have the full height of the screen, but with 71 items it's still going to be unpleasant for the user.With 71 items, I think the best solution would be to use rows and columns, to make best use of the available screen space. For example, you could use a NSCollectionView (or UICollectionView, if iOS) in a popover. There might still be some scrolling, but it would be better than a popup menu.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’16
How to access intermediate results in GPU when using MPSTemporalImage of MPS CNN?
Hi all,I have a question about how to access intermediate results in GPU (not from CPU) when using MPSTemporalImage in MPS CNN.Here is the thing, current MPS CNN provides good capability for Image classification tasks. However, I would like to develop the application on top of Apple's work.I would like to apply my algorithm based on intermediate results in CNN, e.g., one of output of convolutional layer.I know how to access metalBuffer and MTLTexture by Metal API; however, is there any way I can access data in MPSTemporalImage from GPU side directly? (without copy back to CPU for reducing memory transfer.)Any suggestions?The possible solution I found is: I need to use MPSImage for the results I would like to access (since we can not access underlying texture in MPSTemporalImage), and then create a computeCommandEncoder to setTextures to let my Metal codes to access the results in MPSImage.Then, I have a question about does the texture accessed by MPSImage.texture is an array of MTLTexture if the featureChanne
1
0
790
Nov ’16
What is the correct json content format for reporting POST method?
Hello,I'm trying to get report data for my organization through Apple Search Ads API. So I use the method-H ... -d @TestSearchTermReport.json -X POST <ROOT_PATH>/v1/reports/campaigns/{cId}/searchtermsI have included all the headers and credentials. The following is the content of my json data file for the POST body:{ startTime: 2016-11-13, endTime: 2016-11-13, timezone: UTC, granularity: DAILY, selector: { orderBy:[{field:spend,sortOrder:DESCENDING}], fields: [spend, taps, conversions, avgCPA, avgCPC, ttr, conversionRate], pagination: { offset: 0, limit: 1000 } }, groupBy: countryCode, returnRowTotals: False, returnRecordsWithNoMetrics: False}However, I get the following error message:{data:null,pagination:null,error:{errors:[{messageCode:INVALID_JSON_REQUEST,message:This is an invalid json. The request can not be parsed,field:Line#:1 Column#:3}]}}I have tried many times through different ways, but still not working. Is there any smart guys can help me?Thanks in advance!
1
0
594
Nov ’16
Fine tuning printing
I need to print text that may be several pages long.I create an NSTextField that is inserted in the printing view.Everything works OK, except that the split between pages occur in the middle of a line, which is thus split vertically in 2 parts on 2 pages.To manage this, following advices from Printing Programming Guide for Mac, I try to use adjustPageHeightNew.Tiling Content Across PagesIf the view does not supply its own pagination information and one of the print info object’s pagination settings is NSAutoPagination, NSView tries to fit as much of the view being printed onto a logical page, slicing the view into the largest possible chunks along the given direction (horizontal or vertical). This is sufficient for many views, but if a view’s image must be divided only at certain places—between lines of text or cells in a table, for example—the view can adjust the automatic mechanism to accommodate this by reducing the height or width of each page.Before printing begins, the view calculates the positions of a
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
320
Nov ’16
Reply to Initialize metal shading language 3x3 matrix
It's not currently possible to initialize a matrix in the Metal shading language using a list of scalars. To answer your real question, though, elements are listed in column-major order, so the correct way to declare this matrix is:float3x3 m = float3x3({1.0, 4.0, 7.0}, {2.0, 5.0, 8.0}, {3.0, 6.0, 9.0});
Topic: Graphics & Games SubTopic: General Tags:
Nov ’16
error signing identity "-"
I had to rebuild my iMac a few months ago and I restored from my Time Machine backup.I now need to make a change to an app but what used to compile without error is now failing at the codesign step with: Signing Identity: -As far as I can see, all of the account profiles are valid with expiry dates in the future. The only 'odd' thing is that some have a 'Download' button in the 'Action' column of the 'Provisioning Profiles' seciotn of the account details - when I select the Download All Profiles button, they turn grey but never seem to download or disappear (even after aiting for several hours!). Looking at the 'developer' web page, all of my certificates and provisioning profiles are all active.Any ideas welcomedThanksSusan
1
0
1.7k
Nov ’16
background image resolutions
Hello,I'm new to iOS development and am trying to understand the 1x, 2x, 3x image settings for just setting the background image, although my question would certainly apply to any image.I've created three background images that are 100x100px; 200x200px; 300x300px and imported them into assets.xcassets. They all import into the 1x setting. So I have three files all sitting at 1x. I assumed that xcode would put the 100x100 into the 1x; 200x200 into the 2x and 300x300 into the 3x.I see I can drag the visual image from 1x to 2x or 3x, but that doesn't really solve the problem.How can I get the image into all three columns? Am I creating the base image (using pixelmator) the wrong way?Appreciate the help!
1
0
943
Nov ’16
Reply to background image resolutions
Heads up to anybody that stumbles on to this with the same problem. The answer is all in the naming nomenclature. so if your base 100x100 image is called background.png. then call the 2x version background@2x.png and the next one background@3x.png.Then when you import all three images into Assets.xcassets, it shows as a single image but places each one in the appropriate 1x, 2x, 3x column.
Nov ’16
Signing identity error "-"
(I posted this in the Distribution >> App Submission and Review forum 2 days ago but it has not received a response. Trying here...)I had to rebuild my iMac a few months ago and I restored from my Time Machine backup.I now need to make a change to an app but what used to compile without error is now failing at the codesign step with:Signing Identity: -As far as I can see, all of the account profiles are valid with expiry dates in the future. The only 'odd' thing is that some have a 'Download' button in the 'Action' column of the 'Provisioning Profiles' seciotn of the account details - when I select the Download All Profiles button, they turn grey but never seem to download or disappear (even after aiting for several hours!). Looking at the 'developer' web page, all of my certificates and provisioning profiles are all active.Any ideas welcomedThanksSusan
10
0
9.9k
Nov ’16