POST
|
Target Environment Development OS: 64-bit Windows 7 Deployed OS: 32-bit Windows XP Toolkit: Qt 4.2.3 In the next three videos, please note the issue. At start-up, a user can hover across the toolbar and it brings up the tool tip for each command/tool. When a user presses a command/tool the main application window loses focus. If the user hovers across the toolbar now, there are no tooltips- obviously. If the user subsequently clicks commands, then they appear raised and tooltips still do not work while the main application window does not have focus. Tools function properly other than no tooltips. If the video is too small, then please run it full-screen. Qt4 Toolkit WxWidgets Toolkit GTK Toolkit Please note the Visual C++ SDK behaves normally. The main window does not lose focus. The delay when I click Fixed Zoom-In is from labeling. My question is, for the Qt example, how do I get the focus to return to the main window after clicking an item on the toolbar? I suppose I could use the IToolbarControlEvents interface to capture one of the mouse actions, but how would I return the focus to the main window? Would I pass the QMainWindow into the IToolbarControlEvents implementation constructor or access it through the QAxCtl through the IToolbarControl interface(how?) and then accessing the QMainWindow through QAxCtl through accessing parent widgets (provided they had been set) until I reached the top level? Thanks in advance. 🙂 The examples used here are: \ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\DynamicDisplay\Qt_Cpp \ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\Wx_Cpp \ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\GTK_Cpp \ArcGIS\DeveloperKit10.0\Samples\ArcObjectsVCPP\geodesy_map_control_sample\Visual_CPP
... View more
03-04-2011
01:49 PM
|
0
|
0
|
749
|
POST
|
Does anyone know of any hosted on ArcGIS Online or anywhere else? Just want to test the AGSAttachment class of the iOS API.
... View more
07-29-2010
02:40 PM
|
0
|
1
|
427
|
POST
|
I had the same issue with the last release of the API. I'm getting around to trying it again.
... View more
07-09-2010
08:11 AM
|
0
|
0
|
662
|
POST
|
This seems to work, but it's not setting up the spatial reference correctly:
NSDictionary *sRJSON=[NSDictionary dictionaryWithObjectsAndKeys:@"4326", @"wkid", nil];
NSDictionary *locationJSON=[NSDictionary dictionaryWithObjectsAndKeys:@"-122.408951", @"x", @"37.783206", @"y", nil];
NSDictionary *attributesJSON=[NSDictionary dictionaryWithObjectsAndKeys:@"MASON", @"StreetName", @"ST", @"StreetType", nil];
NSDictionary *json=[NSDictionary dictionaryWithObjectsAndKeys:sRJSON, @"spatialReference", @"1 MASON ST", @"address", locationJSON, @"location", @"75", @"score", attributesJSON, @"attributes", nil];
AGSAddressCandidate *candidate=[[AGSAddressCandidate alloc ]initWithJSON:json];
NSLog(@"***Address Candidate Start***");
//Display the address cey 03.18.10
NSLog(@"Address Candidate String: %@",[candidate addressString]);
//Display the location cey 03.18.10
//What's the spatial reference of the locator? How can I find that out at the endpoint? Wouldn't it make sense to be able to retrieve the spatial reference from the point?
AGSPoint *location = [candidate location];
NSLog(@"Address Candidate @ (%f,%f,%@)",[location x], [location y], [location spatialReference]);
NSDictionary *address = [candidate address];
NSLog(@"Address Candidate Fields Count: %d", [address count]);
for(NSString *aKey in address)
{
NSLog(@"Key: %@ Value: %@", aKey, [address objectForKey:aKey]);
}
NSDictionary *attributes = [candidate attributes];
NSLog(@"Address Candidate Attributes Count: %d", [attributes count]);
for(NSString *aKey in attributes)
{
NSLog(@"Key: %@ Value: %@", aKey, [attributes objectForKey:aKey]);
}
NSLog(@"Address Candidate Score: %f",[candidate score]);
NSLog(@"***Address Candidate End***");
Output: 2010-06-14 17:20:07.679 AGSAddressCandidate[973:207] ***Address Candidate Start*** 2010-06-14 17:20:07.682 AGSAddressCandidate[973:207] Address Candidate String: 1 MASON ST 2010-06-14 17:20:07.683 AGSAddressCandidate[973:207] Address Candidate @ (-122.408951,37.783206,(null)) 2010-06-14 17:20:07.683 AGSAddressCandidate[973:207] Address Candidate Fields Count: 0 2010-06-14 17:20:07.684 AGSAddressCandidate[973:207] Address Candidate Attributes Count: 2 2010-06-14 17:20:07.684 AGSAddressCandidate[973:207] Key: StreetType Value: ST 2010-06-14 17:20:07.685 AGSAddressCandidate[973:207] Key: StreetName Value: MASON 2010-06-14 17:20:07.685 AGSAddressCandidate[973:207] Address Candidate Score: 75.000000 2010-06-14 17:20:07.686 AGSAddressCandidate[973:207] ***Address Candidate End***
... View more
06-14-2010
01:22 PM
|
0
|
0
|
386
|
POST
|
{ "spatialReference": {"wkid" : 4326}, "candidates" : [ { "address" : "1 MASON ST", "location" : { "x" : -122.408951, "y" : 37.783206 }, "score" : 75, "attributes" : {"StreetName" : "MASON", "StreetType" : "ST"} }, { "address" : "49 MASON ST", "location" : { "x" : -122.408986, "y" : 37.783460 }, "score" : 27, "attributes" : {"StreetName" : "MASON", "StreetType" : "ST"} } ] } Is it a NSDictionary of NSDictionaries?
... View more
06-14-2010
01:01 PM
|
0
|
3
|
3043
|
POST
|
The above function is returning an empty dictionary for an AGSAddressCandidate that has been populated. Why? Please see line 162 of AGSAddressCandidateViewController.m of the attached code.
... View more
06-07-2010
08:59 AM
|
0
|
1
|
1374
|
POST
|
mapView.callout.hidden = YES; Refer to the ToggleGraphicsLayer function in GraphicsDemoViewController.m of the GraphicsDemo sample in the SDK. It's around line 106. I've been editing my own GraphicsDemo sample, so your line # will vary. Hope that helps.
... View more
05-07-2010
04:41 AM
|
0
|
0
|
375
|
POST
|
Which function in the AGSMapViewDelegate is called? Thanks.
... View more
05-06-2010
08:37 AM
|
0
|
1
|
429
|
POST
|
/var/log/install.log is the place to look for installation errors. It's how I figured out that the March 20, 2010 beta release didn't like the existence of my MapViewDemo sample files. I moved them and the installer worked. The log message will look similar to: Apr 13 09:58:46 MBP Installer[476]: @(#)PROGRAM:Install PROJECT:Install-580 Apr 13 09:58:46 MBP Installer[476]: @(#)PROGRAM:Installer PROJECT:Installer-430.1 Apr 13 09:58:46 MBP Installer[476]: Hardware: MacBookPro5,1 @ 2.66 GHz (x 2), 4096 MB RAM Apr 13 09:58:46 MBP Installer[476]: Running OS Build: Mac OS X 10.6.3 (10D573) Apr 13 09:58:46 MBP Installer[476]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin Apr 13 09:58:46 MBP Installer[476]: Env: TMPDIR=/var/folders/XS/XStbXdJHFWO9xTD+2gBHUE+++TI/-Tmp-/ Apr 13 09:58:46 MBP Installer[476]: Env: SHELL=/bin/bash Apr 13 09:58:46 MBP Installer[476]: Env: HOME=/Users/kmonroe Apr 13 09:58:46 MBP Installer[476]: Env: USER=kmonroe Apr 13 09:58:46 MBP Installer[476]: Env: LOGNAME=kmonroe Apr 13 09:58:46 MBP Installer[476]: Env: DISPLAY=/tmp/launch-EyAw8E/org.x:0 Apr 13 09:58:46 MBP Installer[476]: Env: SSH_AUTH_SOCK=/tmp/launch-4u97UD/Listeners Apr 13 09:58:46 MBP Installer[476]: Env: Apple_PubSub_Socket_Render=/tmp/launch-l8gUzy/Render Apr 13 09:58:46 MBP Installer[476]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0 Apr 13 09:58:46 MBP Installer[476]: Env: COMMAND_MODE=unix2003 Apr 13 09:58:46 MBP Installer[476]: AGSiPhoneSDK_03122010 Installation Log Apr 13 09:58:46 MBP Installer[476]: Opened from: /Users/kmonroe/Downloads/AGSiPhoneSDK.pkg Apr 13 09:59:00 MBP Installer[476]: ================================================================================ Apr 13 09:59:00 MBP Installer[476]: User picked Standard Install Apr 13 09:59:00 MBP Installer[476]: Choices selected for installation: Apr 13 09:59:00 MBP Installer[476]: Upgrade: "AGSiPhoneSDK_03122010" Apr 13 09:59:00 MBP Installer[476]: Upgrade: "SDK" Apr 13 09:59:00 MBP Installer[476]: AGSiPhoneSDK.pkg#packageroot.pkg : com.esri.arcgisiphonesdk.pkg : 1 Apr 13 09:59:00 MBP Installer[476]: ================================================================================ Apr 13 09:59:00 MBP Installer[476]: It took 0.00 seconds to summarize the package selections. Apr 13 09:59:00 MBP Installer[476]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost Apr 13 09:59:00 MBP Installer[476]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/kmonroe/Downloads/AGSiPhoneSDK.pkg#packageroot.pkg Apr 13 09:59:00 MBP Installer[476]: Will use PK session Apr 13 09:59:00 MBP Installer[476]: Starting installation: Apr 13 09:59:00 MBP Installer[476]: Configuring volume "Macintosh HD" Apr 13 09:59:00 MBP Installer[476]: Preparing disk for local booted install. Apr 13 09:59:00 MBP Installer[476]: Free space on "Macintosh HD": 174.76 GB (174757707776 bytes). Apr 13 09:59:00 MBP Installer[476]: Create temporary directory "/var/folders/XS/XStbXdJHFWO9xTD+2gBHUE+++TI/-Tmp-//Install.476GUGGcd" Apr 13 09:59:00 MBP Installer[476]: IFPKInstallElement (1 packages) Apr 13 09:59:00 MBP installd[481]: PackageKit: ----- Begin install ----- Apr 13 09:59:00 MBP installd[481]: PackageKit: request=PKInstallRequest <1 packages, destination=/Users/kmonroe> Apr 13 09:59:00 MBP installd[481]: PackageKit: packages=(\n "PKLeopardPackage <file://localhost/Users/kmonroe/Downloads/AGSiPhoneSDK.pkg#packageroot.pkg>"\n) Apr 13 09:59:00 MBP installd[481]: PackageKit: Extracting /Users/kmonroe/Downloads/AGSiPhoneSDK.pkg (destination=/var/folders/XS/XStbXdJHFWO9xTD+2gBHUE+++TI/-Tmp-/PKInstallSandbox-tmp/Root, uid=501) Apr 13 09:59:01 MBP installd[481]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.c5fnlo/Scripts/com.esri.arcgisiphonesdk.pkg.oCyQPd Apr 13 09:59:01 MBP installd[481]: ./preinstall: This is the preflight Apr 13 09:59:01 MBP installd[481]: PackageKit: Shoving /var/folders/XS/XStbXdJHFWO9xTD+2gBHUE+++TI/-Tmp-/PKInstallSandbox-tmp/Root (1 items) to /Users/kmonroe Apr 13 09:59:01 MBP /System/Library/PrivateFrameworks/PackageKit.framework/Resources/shove[483]: [source=file] failed _RelinkFile(/var/folders/XS/XStbXdJHFWO9xTD+2gBHUE+++TI/-Tmp-/PKInstallSandbox-tmp/Root/Library/SDKs/Samples/MapViewDemo/Classes/MapViewDemoViewController.m, /Users/kmonroe/Library/SDKs/Samples/MapViewDemo/Classes/MapViewDemoViewController.m): Operation not permitted Apr 13 09:59:01 MBP installd[481]: PackageKit: Install Failed: (null)\nError Domain=PKInstallErrorDomain Code=120 UserInfo=0x100310b40 "An unexpected error occurred while moving files to the final destination." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=1 "The operation couldn�??t be completed. Operation not permitted") {\n NSLocalizedDescription = "An unexpected error occurred while moving files to the final destination.";\n NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=1 \"The operation couldn\U2019t be completed. Operation not permitted\"";\n arguments = (\n "-f",\n "-s",\n "/var/folders/XS/XStbXdJHFWO9xTD+2gBHUE+++TI/-Tmp-/PKInstallSandbox-tmp/Root",\n "/Users/kmonroe"\n );\n} Apr 13 09:59:01 MBP Installer[476]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=120 UserInfo=0x100187120 "An unexpected error occurred while moving files to the final destination." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=1 "The operation couldn�??t be completed. Operation not permitted") Apr 13 09:59:01 MBP Installer[476]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. Apr 13 09:59:01 MBP Installer[476]: IFDInstallController 14FAE0 state = 7 Apr 13 09:59:01 MBP Installer[476]: Displaying 'Install Failed' UI. Apr 13 09:59:01 MBP Installer[476]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
... View more
05-05-2010
10:01 AM
|
0
|
0
|
306
|
POST
|
Where can I find information on setting up the symbol with json?
... View more
05-04-2010
07:26 AM
|
0
|
1
|
2842
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|