Xcode Osx drag to Browser - objective-c

I have a problem, that brings me head.
When I drag and drop an image on to an external browser from Finder, it recognizes it perfectly.
However, from the My App I have a file manager, and when I try to drag an image on to an external browser, is not recognized.
What do I have to do to recognize the image as a file?

Related

Copy a file to HoloLens emulator

I have a UWP application that allows a user to pick a file (using a file selection dialog). I can run the application inside of the HoloLens emulator. The file selection dialog seems to be working correctly. However, there are no files to choose from !
I want to copy a file from my local file system into the emulator so that the application has something to work with. How do I do that?
[EDIT]
Below is an image of the File Explorer for "PublicDocuments". Here, files can be uploaded. However, the "PublicDocuments" folder isn't visible from inside the emulator.
Below is an image of the File Explorer for "Documents". The buttons "Choose File" and "Upload" are not visible.
Open any folder and scroll down - the Upload button is at the very bottom.
You can use Device Portal for this. Open Device Portal for the emulator (using the globe icon on the toolbar) and browse to the File Explorer page. You can upload files to user folders such as the Documents folder, as well as to the storage folders for your in-development app.

file name grayed out in browse window when try to upload video file to my website in mac safari

when user click on browse bottom and try to upload video file to the site (MP4 for example) from mac safari the file grayed out (disabled) and it can't be selected.
it happens only for video files and only in mac Safari.
in others browsers in work good.
when I try to upload MP3 file it also work.
I experience this "bug" on a daily basis with Safari. The bug has not been patched or fixed and still exists today with Safari 13.0.2 and macOS Catalina.
The workaround is this. When the file selection window opens, control-click on the file and select Quick View from the menu. Then go back to the file selection window and you will be able to click on it for upload. Ridiculous that this hasn't been fixed by Apple.
select the file (either jpeg or png) and rename to filename.jpeg><filename.png> so the file type remain same.
worked for me.
Upgrade safari to the latest version since this was a bug that mac had which they patched in the most recent version since others had the problem too.

How to make built app with icon?

I'm writing an OSX App and added an icon for it.
After building in Xcode, I can see the app with icon under Products folder, but when I RightClick->'Show in Finder', the built file is shown without icon. I want the built file to have an icon.
For Mac OS applications, you need to create an .icns file and include it in your Info.plist just like any other project.
Just change icon.png to icon.icns
When I submit an icon image for my app, I never add the .icns extension. It is automatically assumed by the compiler. So for the icon file "icon.icns", simply enter "icon".

Set logo for Mac application

I am an iOS developer and did my first Cocoa Mac application using Xcode 4.2, I set the Logo image in the xcode itself and property list, but the application logo still has its default logo (the white sheet with two pens), how can I set Logo for my application?
Design your 512x512 icon and save it as png file. Open Icon Composer (installed with Xcode in /Developer/Applications/Utilities folder) and drag your png file to it and save your icon as icns.
Now in Xcode open your project and select the target. Drag your icns file to the "App Icon" box. That´s it! Build and run again...
You should place icon (icns format file) Your project target -> summary -> drag n drop in App icon box.
you need a .icns file rather than a straight png to get the file icon. This is essentially a collection of images at different sizes that mac os can use for different jobs.
as of mountain lion, the Icon Composer isn't available. You can build your icns file on the command line from a bunch of scaled and named bitmaps, or you can use the simple utility I built to do the job!
http://hobbyistsoftware.com/icnsBuilder

How to put xcode in my /applications folder, preferably in a /developer sub-folder

Not sure why, but currently the only way I can access xcode is by going into finder and typing 'xcode'.
How can I link xcode from my applications folder, and pref. put it into a 'developer' sub-folder.
(new'ish to mac)
Xcode is installed in /Developer/Applications/, just open it using spotlight and when the icon is in the dock, right click and select Keep in dock.
Find xcode in spotlight.
press command+enter to open it in a Finder window
drag the icon to the dock
or drag it to another folder while
pressing command+alt (to create a
link/alias)