How to make Native Web View disappear? - distriqt

Basically, I need to set a visible property, or just call a hide() method to make it invisible in the screen, is there any way to do that?.

This currently isn't possible. You have two options, either make the view very small (1x1 px) or remove and recreate the view.
This feature is on our list of enhancements on github, feel free to add a comment there if you have any requirements.
Cheers

Related

How to place items in a NSScrollView

When I try to place objects using the Interface Builder in Xcode into a NSScrollView, they appear fine until runtime in the application, where they do not appear at all for some reason. I want it to be so that I can place multiple buttons and labels in the view, and have the user be able to scroll down to see more.
Am I not meant to use NSScrollView for this purpose?
Is there another way to go about implementing it I am not aware of?
You need to check the where you added the UI objects.
You need to consider these :
Is your autolayout enabled?
Did you flipped the view?
Resizing mask is working good as per your requirement.
Am I not meant to use NSScrollView for this purpose?
No, you picked the correct control for the requirement. NSScrollView is indeed for same kind of use.

Scroll with pictures

I'm programming on objective-c. How can I create scroll with paging enabled like this.
First check the property of scroll view for Paging enabled.Then set your scroll view content size corresponding to how much page you want.
You can try this implementation
https://github.com/100grams/HGPageScrollView
There's also a nice website for custom cocoa controls http://cocoacontrols.com/, where you can find very good stuff, so you won't need to invent the wheel =)

Cocoa UI change

How can I remove & show new UI controls at one place in mac application.
I want to have some layout at one place..which will be shown in different conditions.
I am new to the Xcode & objective c.
Please help
Based on your comment, it sounds like you want something along the lines of a wizard. For that, I'd suggest grouping your forms into an NSTabView. You can disable the tabs, and call one of the various tab selection methods instead. Have a look at Apple's Introduction to Tab Views for more.
See NSView's -replaceSubview:with:
I found this example pretty helpful. He describes a good way to set up your related views. You can always add the animation later once you get the basics down.

Changing how IKImageBrowserView indicates the drop position

I can make a single row IKImageBrowserView by setting the
[imageBrowser setContentResizingMask:NSViewWidthSizable];
but in this case while i drag an image inside image browser to rearrange it, the drop place highlights with horizontal line(vertical line expected).
how can this be changed?
Many thanks.
There is no defined way to do what you want.
You may be better off writing your own custom view where you can control every detail of how things are drawn. In general, Apple's controls are "as-is" and unless they provide an explicit way to control behavior or mention that you can custom an object in some way, don't count on being able to do it easily (if at all).
I would also suggest heading to http://bugreport.apple.com and making the enhancement request - it would be best if you attached a sample application demonstrating the behavior.
EDIT: You could also try out the NSCollectionView to see if it might work for you.

Use a button to change the orientation of the iPhone

Is there a way to change the orientation of the iPhone using a button?
No. flip the phone, the orientation changes. Leave it at that, or you'll ruin the integrity of the phone.
sometimes we need to show our app in the correct orientation, even if there is not direct way on doing what domness want, you can look at this SO entry and see some responses.
P.S. # domness, try to search for what you need before posting a new question.
What exactly are you trying to reorient? You can change the position of the status bar with UIApplication -setStatusBarOrientation:animated:; rearrange your UI with the proper transformations and you'll pretty much have it.
You can force an orientation change, but only using an unsupported, private API. If this is something you'd like Apple to make public, you should file an enhancement request.
This is my new account btw..
Right, I got this sorted by apply the transformations to what I wanted to show when the button was clicked. It was to show a scrollview with applied animations to objects within the scroll view.