xcode dropdown - shows all my class properties and methods. Just want methods - iphone

Not sure what to call it, but in xcode there is a dropdown that lists
all the properties and methods in the current file.
Is there a way to just show the methods? I have a few classes with a boatload of properties, and having to scroll past them in the dropdown is a pain.
Thanks!

No, You cant hide your properties from the drop down list. It is for showing methods and properties both. so if you think you take more time to find the method then type one or two letter : list will be automatically sort.

Xcode Plugin for hiding properties in dropdown list https://github.com/shpakovski/Xprop

Related

Can I disable the automatic keyboard pop-up of the SearchDelegate Class?

Im using the SearchDelegate Flutter class. It automatically opens the keyboard when I use the showSearch Method.
I figured that I could close it right away within one of the overwritten Methods. But I don't want it to pop-up in the first place. Only when taping the search bar.
I know that the SearchDelegate class has a _focusNode attribute but I don't know how to work with it.
Any ideas? Thanks in advance.
As of today (december 2022), going strictly by your question : no, you can't.
Dart fields with a leading underscore _ are not just a naming convention, they allow to mark fields as private. Such fields will only be available to :
The declaring .dart file, when declared at top-level.
The parent Dart object, when declared at scope-level.
Thus, your code does not have access to the _focusNode field, nor the _SearchPageRoute<T>, _SearchPage<T> or _SearchPageState<T> classes.
In conclusion, you can either deal with this limitation or create your own custom implementation of this search page. You could either build it from scratch, or by forking the existing showSearch implementation and modifying it to fit your needs.

How do I add my own properties to the Bindings Inspector in Xcode?

When editing a .xib in Xcode, I can select a view or other object, navigate to the "Bindings" tab in the Inspector, and bind its properties to properties of other objects. This is all well and good, but if I create my own subclass and add new properties, those properties won't appear in the list, and I'm having trouble finding an up-to-date solution for adding them.
I'm aware that I can create the binding at runtime using bind:toObject:withKeyPath:options:, but that doesn't seem like a very elegant solution, as it's clunkier than setting up a binding normally is, and adding glue code kind of defeats the purpose of using bindings. The only method I've seen is to create something called an IBPlugin, but I'm hearing Xcode stopped supporting IBPlugins ages ago when it and Interface Builder were merged into a single program.
So how can I do this? I tried #IBInspectable, which makes properties settable in the inspector, but it doesn't look like that makes them bindable.

Why aren't UIViewAnimationsOptions available in the drop down menu?

I'm working through the Code With Chris card matching game and when setting up the animation, he presses "." to bring up a list of options to select from. When I do the same thing my list of things to select from is different. I tried putting in the text manually but Xcode doesn't recognize it. What am I doing incorrectly?
Because the tutorial is calling UIView.animate but you are calling UIView.animateKeyFrames. Those are different methods and take a different set of options.
(There have also been some changes in the code completion interface since that tutorial was created.)

Two Frameworks use the name for a property

SwifterSwift has a property name cornerRadius.
It's an extension to UIView.
While the DropDown framework has a property name cornerRadius.
DropDown (the class) is a subclass of UIView.
It seems like xCode doesn't know which property I'm referring to.
I only imported one framework to my file but SwifterSwift's extension still takes effect.
I modified the DropDown framework and everything worked fine but then I reverted because it's not allowed and I wouldn't know how to debug any future problems.
I also tried creating a function in an extension to somehow get around this problem.
It turns out that I can't directly access DropDown's table (which is the view that we round).
I cant remove the SwifterSwift framework because it has already been used in the project that I'm working on. Although that might be the best option.
Is there a solution to this problem ?
In Swift, namespaces are implicit and belong to target it is defined. So, for your case, the workaround would be to add the target name in the property call.
SwifterSwift.cornerRadius
DropDown.cornerRadius
Let take example of String. It belongs to Swift target and so I can do this
let str = Swift.String("abc".characters)
Please follow the steps in this issue
Or upvote for adding prefix to all SwifterSwift extensions here

Opening IProject properties when another (adaptable to IProject) object is selected

I have a custom view displaying a hierarchy model of the current project. The root element is of class MyProject which is my own class, but it represents one Eclipse IProject, and it's adaptable to IProject.
I have a "properties" menu option in the popup menu for that view, and I'd like to open up IProject's properties when a MyProject object is selected. PropertyDialogAction only looks for property pages registered for MyProject and doesn't give me a chance to offer an adapter -- or, at least, I don't know how to offer one.
What's the proper solution for this?
In the meantime, I've overridden PropertyDialogAction to handle my class in the special way I require, but that seems like quite a kludge to get this done.
How did you add the Properties in the Popup menu? Ideally its functionality is to show up the property pages of the current selection - not to show up the properties of the project in which the current selection resides. If you want that, you need to use the menu item Project->Properties - which uses the ProjectPropertyDialogAction instead of the PropertyDialogAction