Posts

Post not yet marked as solved
2 Replies
0 Views
Haven't been able to find the .plist file containing the data, but the all the defaults can be viewed by typing po [[ NSUserDefaults standardUserDefaults ]persistentDomainForName:BundleIdentifier] at the debug console while the app is stopped at a breakpoint. BundleIdentifier is shown in the General tab of the Project.xcodeproj file.
Post not yet marked as solved
3 Replies
0 Views
Update - problem reappeared and the fix described did not work. Canvas location describes where the window is shown in interface view. Tried removing customClass="NSButton" from view key="contentView" id="380" customClass="NSButton" via the Identity Inspector, which showed a greyed out NSView in the Custom Class area after I deleted NSButton. This resulted in the controls being shown with the correct ordering.
Post not yet marked as solved
3 Replies
0 Views
The Preferences screen is one which I have modified from another project in which it shows with the expected control order. I have extracted the part of the MainMenu.xib file in which the Preferences window is defined for the modified and original files. Edited versions of both are included below (full versions exceed the size limit for posts, as they comprise about 200 lines each). Modifications include additions of several controls, movement of existing controls and change of window size. Comparison between the modified and the original Preferences window code show many differences, but a significant one may be the inclusion of point key="canvasLocation" x="-842.5" y="-822.5"/ before the closing /window tag in the modified version. Update: removing the above line seems to fix the problem! Extract from Modified Preferences Window with controls in inverted order window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="379" userLabel="Preferences" customClass="NSPanel" windowStyleMask key="styleMask" titled="YES" closable="YES"/ windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/ rect key="contentRect" x="391" y="507" width="269" height="375"/ rect key="screenRect" x="0.0" y="0.0" width="1280" height="777"/ view key="contentView" id="380" customClass="NSButton" ..... /view point key="canvasLocation" x="-842.5" y="-822.5"/ /window Original Preferences Window with controls in expected order window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="379" userLabel="Preferences" customClass="NSPanel" windowStyleMask key="styleMask" titled="YES" closable="YES"/ windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/ rect key="contentRect" x="391" y="507" width="249" height="199"/ rect key="screenRect" x="0.0" y="0.0" width="1680" height="1028"/ view key="contentView" id="380" .... /view /window
Post not yet marked as solved
7 Replies
0 Views
MainMenu.xib is present in modified project. When I click on it I see in the left half of the centre pane some XML which I think describes the interface. In the right half is the message "No Editor". Below each half is the message "Unable to load revisions". In a pane below the two halves are a number of messages including "Failed to connect (Apply) outlet from (AppDelegate) to (NSButton): missing setter or instance variable". In the right-hand pane is the message "Not Applicable". Despite these problems the project builds and runs OK. I am re-entering the project modifications to the downloaded code and so far the interface is visible when clicking MainMenu.xib.
Post not yet marked as solved
7 Replies
0 Views
When I click on MainMenu.xib on the downloaded code, the interface appears OK. When I click on same file in the Modified code I don't see it and the message Unable to load Revisions appears and no interface is shown. What does this signify? The modification I am trying to do is to add a pad region below the image, write some text entered in a text box in the pad region when a button is clicked. If I try and determine how to do this by setting a breakpoint where the image EXIF metadata is set, the call stack shown in the left pane contains what looks like assembler (Framework code) in the routine which calls the one in which the breakpoint is set. If I add a button, how can I make its click event execute the code to add padding to the image and write in it?
Post not yet marked as solved
7 Replies
0 Views
There is a .xib file. I recall editing the interface a few months ago but don't seem able to do it now after a few upgrades. CocoaSlideShow was from Github. I downloaded a zip of the CocoaSlideShow code from GitHub. The first time I viewed it with XCode (12.3.(12C33)) I could see the interface. After closing and re-opening I could not see it.