nsPopover triangle not appearing on the popover - nspopover

I have used the Less version of the scss they have . I used grunt scss2less tool to generate it. Now after adding the less file and integrating I dont see the triangle part of the popover. Any help would be appreciated. I have raised the pull request for the less file in the nsPopover repo.

Related

Unable to Get options when adding sprites in Godot engine

whenever i drag and drop a sprite from my assets folder it gets added straight as a node to the scene but never ask for options like you see in the image. I am a beginner and do not understand why is this happening. Please help!
To get the node type menu that you're looking for, hold alt when you drag and drop. (Tested in v3.2 stable)

Cocoa user can set screen size

I'm completely new to Cocoa and Xcode. I started using it a couple of days ago, because I have to build a little tool for macOS.
After hours of research I still can't find a solution for my problem.
What I need to do:
A window with a Quartz Composer Patch QCView (everything working) which resizes with the window the QCView is in
There should be a second window with two text fields (with Number Formatter and editable).
Those text fields should show the current resolution of the window with the QCView
The user should also be able to type numbers in the text fields to set the size of the QCView (x and y)
As I mentioned above, I'm not really experienced in Cocoa, Xcode, Objective-C or Swift.
If someone could give me some hints how to accomplish those tasks would be great (especially with which parts of the code have to be put in the .h and .m or .swift files).
Thanks for your help!

Xcode Interface Builder loading XIB file show view with transparency

Something weird is happening with some of my xib files of my project.
I have one xib file where my view hierarchy not appear on live preview frame and those views appears with transparency.
See the screenshot below:
Now the most weirdest think, I can't restore other states of this same file in my source history, but Xcode loads this same file, from different history states exactly same like the screen shot above.
Maybe because I have two versions of this same xib, both is for different languages, anyway, the file is not same, each localised file are stored in different directories.
I'm just curious to know if someone got this problem before and if have some solution for this.
Thanks.
Ok I found the problem.
This behaviour is default in Xcode, this means the views aren't installed for the current size classes on canvas.
I just changed to the size classes I defined before and looks fine now.

mfmailcomposer cuts end of html email

I've created an in app email feature to ask a question that opens the mfmailcomposer and fills it with html content. Unfortunately it seems to cut off the final line of the email so it appears as the image below.
I have set the mfmailcomposer to self, followed every tutorial I can find, the only reference to fix it has said the following:
make sure your mfmailcomposer is set to self ie. [self presentModalViewController:email animated:YES];
make sure it's embedded within a navigation controller
Neither solution works.
I have found that if the email contents is short enough that the entire email fits on screen the problem doesn't appear but if you continue typing to push the contents off the edge it reappears.
Any ideas on a solution? Or is this an Apple xcode "design feature"?
I managed to resolve this issue, it seems to be a bug, that's the only explanation I can reach.
If the start of your content is a header (<h1>, <h2>, <h3>, etc) tag (even if it is within a HTML and BODY tag) it creates this issue.
If you want to start your email body with a header tag then the simplest way of fixing it is to add a non breaking spacer before the header tag, it seems to completely resolve the issue.
Possibly a framework bug. Does it occur on different versions of iOS? Try it with both older and newer versions of the operating system and on other devices.
Are you 100% certain that the view is not actually larger than its container view? Explore the view hierarchy. Perhaps in plaintext Apple adds some spacing, so it doesn't seem like the content is out of bounds of the parent view, although it is.
How do scroll indicators behave? Are they also clipped?
Are you presenting the message composer in a fullscreen view? If you're trying to present it in a view that is controlled by a sub-controller of the tab view controller, that might cause the composer view controller to be confused.
For what it's worth, I've just tested my code which generates HTML content, and there is no clipping. This is on iOS 4.2.1 on iPhone 3G, but I don't remember seeing the problem on iOS 5.1 either.
Some tips.
While debugging, don't forget: view controllers are actually just managing views that still have their own hierarchies. To clarify, view controllers may have a hierarchy, but their hierarchy does not necessarily correspond to view hierarchy. (Although it should in the near total majority of cases.) Same thing with views themselves: they have their hierarchy, but they still just control the underlying Core Animation layers, which have their own hierarchy.
You can always access view hierarchy itself and explore it in greater detail through debugging facilities you come up with yourself. What you shouldn't be doing is meddling too much in parts of the view hierarchy that's supposed to be managed by the view controllers, just like you shouldn't mess too much with the parts of the layer hierarchy that's supposed to be managed by the views.

Creating a Quartz Composer Style interface

I'm wanting to add a Quartz Composer "patch editor" style interface element to my Cocoa/Objective C(++) application. For those unfamiliar with QC, the patch editor is a visual representation of the patch graph: effectively showing each node and it's properties, and providing a mouse driven select/click/drag interface. It looks like...
Quartz Composer Example http://files.me.com/archgrove/ya1xhh
I'll be using it to render a specific type of multi-rooted tree, where each node has some associated text and an arc joining it to its children. Users will be clicking on the tree nodes to select them, as well as dragging them around.
At the moment, I'm using a custom NSView inside a scroll view that Quartz draws each node, the arcs etc at each render, and processes mouse and keyboard input by hand (including hit testing, movement and so forth). This seems brutally wheel reinventive, and doesn't interact all that well with Core Animation. I'm hoping someone has some general alternative advice. I'm pondering along the lines of...
An existing control/3rd party library I've overlooked
Make each node in the tree an NSView, and use the normal view structure to handle the input, whilst drawing the graphics in the same way. But then, the inter-node arc rendering doesn't seem to fit naturally into the design
Something using a single NSView still, but making each tree node and arc an individual layer
Something else
Thanks kindly,
adamw
You might want to give EFLaceView a look: FlowChartView on CocoaDev
Edit: download link on page above is dead. There is a version of EFLaceView on github.