Using Interface builder Xcode 4 - interface-builder

When using the interface builder, if I select a button that is in my layout, the interface builder immediately zooms into that button.
Is there any way I can stop that behaviour.
i.e. I want the interface builder to just select the button and not zoom in.
XCode 4.2 snow Leopard
Post-Script. I think the answer is "you can't". One other suggestion refers to making zoom shortcuts but that does seem to help either.

In response to my own question. As of 24 hours later I think the answer is
"you can't".
One other suggestion found when researching in StackOverFlow refers to making zoom shortcuts but that does seem to help either.

Related

macOS Swift Safari-like tabs

I want to add the tabbing mechanism that you can see e.g. in Safari, the Console or the Finder (http://dailymactips.com/working-with-finder-tabs-on-your-mac/). I have already searched a lot, but I can not find a good guide for this.
Ideally, I want to be able to push an alert-dialog before a new tab is created by the user.
NSWindow has native tabs for a couple of years now.
The "Whats new in Cocoa" session from WWDC 2016 is the best place to start, since the documentation is quite thin still.
Whats New In Cocoa (203 WWDC 2016)
If you are using (for example) the method addTabbedWindow::ordered:, you can simply show your alert before adding the tab.

Xcode 7.2 Interface Builder high CPU sluggish slow

Interface Builder freezes when I add a UIView with a UILabel in place of the title
I have tried disabling Autolayout, removed Storyboard reference from the project and add it back again.
Mac info:
I know I am late to the answer here, but I have been strugling with this problem for a while with Xcode 8 in El capitan having this same issue.
I take no credit for the solution, it goes to sroebert user in apple forums, you can see the original source here (you can Ctrl + f his username to get to his answer).
In my case, the problem presented only in specific nibs, not every nib nor storyboard. For my surprise, changing the Top Bar from Opaque Navigation Bar to Inferred made Xcode and Interface builder responsive once again.
It may or may not help you, but I hope it helps someone.

Fluid swipe and scrolling 10.7 style

I'm looking to add two finger "fluid swiping" to my app. Anyone who has used the week view in the Calendar app that comes with OSX will have seen what I'm trying to do.
I have a scroll view, and I want to be able to use swipe gestures and scrolling to move the content view in the horizontal axis of my NSScrollView, ie a day or a week.
The video from WWDC 2011 titled "Scrolling, Swiping, Dragging: Now with more animation" was quite useful, and looks like it will be able to explain what I want to do, but unfortunately the sample code for PictureSwiper isn't provided with the video.
I'm aware that a newer version of PictureSwiper is avaliable, but it uses NSPageController and I'm really looking for the older Lion 10.7 way of handling things as I can't use NSPageController. Is it still possible to find the old PictureSwiper somewhere?
If not could someone explain how the PictureSwiper sample on Lion worked? I'm aware of the App note https://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKitOlderNotes.html (search for "scrollWheel:") but that has only gone part of the way to explaining the kind of functionality I am after.
Many thanks for any help.
David.
For anyone looking to this for an answer I eventually used one of my "Developer Technical Support" queries that came with my paid Dev account to ask for the old code. A few days latter an Apple engineer emailed me the old Picture Swiper.
Now that I have seen the code the App note makes complete sense! Picture Swiper moves CALayers around, but in my case I just use NSClipView's scrollToPoint:.
Within the scroll handler I just do something like: (gestureAmount * columnWidth) + currentColumnIndexOffset.
Seems to work!

How to Auto resize in XCodes 4.3.2

After i upgraded into XCodes 4.3.2 , that's giving me headache.
In older version, We can auto resize our control with click on arrow like following photo
But in XCodes 4.3.2 that view was changed like
So what is scales and how it's work?
I really don't understand apple ever change also user interface when they release XCodes new Version.
Please explain how to work with it?
If my question is too easy for you, please forgive me asking like this question.
Thanks.
I found answer for my question.
That's need to disable auto resize function.
To disable deselect the "use auto layout" option in the Interface Builder design canvas.
After that, everything ok.

How to make an NSPanel immovable

Hey all, quick question that has been bugging me about NSPanel. I like the look of The NSPanel HUD but for the project I am doing I need the Panel to not be moved. Does anyone know of any possible solutions to make it were my NSPanel cannot be moved at all but maintain its buttons interactivity? I've been searching for any questions similar to this for awhile now. Any insight on the issue would be helpful! Thanks.
Don't forget to look in superclasses. A panel is a kind of window, and since Mac OS X 10.6, it's possible to set a window's movable property to NO.
I'm with Dave DeLong, though: I hope you have a good reason to break this functionality. Users expect to be able to move windows, especially those with title bars and HUD windows by their backgrounds, out of their way. And remember, you're not the only application on the system; the user may have something important to get to in a window in another application.

Resources