Quantcast
Channel: User koan - Stack Overflow
Browsing all 40 articles
Browse latest View live
↧

Comment by koan on Sign a Framework for OSX 10.9

Codesigning has changed again for 10.9.5; please see the excellent post at permalink.gmane.org/gmane.comp.lib.qt.devel/18480 for info on how to set up the correct Qt framework directory structure and...

View Article


Comment by koan on How do I set the icon for my application's Mac OS X app...

@Noitidart Try re-registering your application with Launch Services: /System/Library/Frameworks/CoreServices.framework/Frameworks‌​/LaunchServices.fram‌​ework/Support/lsregi‌​ster -f...

View Article


Comment by koan on Properly seeding rand_r(int *val) method

@user1742385, rand_r modifies the parameter and you are passing it a temporary variable that will go out of scope as soon as the rand_r function is entered. You should create a variable for your seed...

View Article

Comment by koan on Some FontAwesome icons are not appearing

Open your site in Firefox and open the web console in Tools/Web Developer menu. The messages I saw helped me debug my FA problem.

View Article

Comment by koan on Static Code Analyzer for C++ in Linux

Check out clang -Weverything but be aware that there will be a lot of false positives

View Article


Comment by koan on XPC service array crashes

You can see in my question the size of data that I want to deal with. This is not a service run, I'm simply transferring some data from a subprocess.

View Article

Comment by koan on SHA256 implementation in c

I just built this code on MacOS 10.11.3 and I got the expected result, so unfortunately for you, I'll be downvoting your answer.

View Article

Comment by koan on Qt: Unicodes / Utf-8 in QString takes for ever (12...

I would say that rendering of Thai letters is not an issue in Qt. The fact is that you are trying to hack an issue, you don't know what the algorithm in Qt for breaking lines is and there is an...

View Article


Comment by koan on Texture losing binding

@thokra I only introduced glIsTexture to help debug the code. How do I properly check that my texture is in memory ? glTexImage2D does not return a value. And why would glIsTexture fail in my main...

View Article


Comment by koan on Tools for JPEG optimization?

@niceass How do you know that JPEGmini is using ImageMagick code ? Knowing the quality factor is the same as output from IM is not proof. My guess is that they recompress the image at reducing quality...

View Article

Comment by koan on Rendering thai characters with tags breaks on Apple devices?

I thought if you convert to HTML entities (อัน) then wrap a b tag around the first one it would work. But it failed in Safari and Firefox (macOS).

View Article

Comment by koan on Change scrollbar colours

Thanks for your answer; it didn't work for me. I dragged the images from ThemeEngine to a Finder window and it copied PNGs. I edited them and dragged them back then saved a new car file. Then I copied...

View Article

Comment by koan on Template Matching using FFT

I had to edit my answer; image padding can be used to interpolate correlation results, which is another problem. Generally, when matching a smaller template to an image then the template is padded and...

View Article


Comment by koan on Window won't close

orderOut by itself did not seem to help so I implemented both the suggestion of @KenThomases and @JWWalker - add an outlet for the window and use orderOut on it and that seems to work.

View Article

Answer by koan for Subprocess icon bounces in dock

I ended up rewriting the subprocess as a MacOS XPC service. In the XPC service's property list I added LSBackgroundOnly to get Launch Services to ignore system event handling.

View Article


Subprocess icon bounces in dock

My application starts a subprocess program to read video using the QuickTime framework via fork() and pipes. The subprocess goes into a wait loop when it is not busy, i.e. it does usleep until there is...

View Article

Answer by koan for Using a NSSavePanel from Qt for a native save dialog

The reason why the tags field is shown under Mavericks is that the following line is wrong:if([panel respondsToSelector:@selector(setShowsTagField)])The setShowsTagField takes an argument so the...

View Article


Using a NSSavePanel from Qt for a native save dialog

The code below works most of the time, maybe a more experienced Objective C++ programmer can help me:Issue 1: When called from specific menu QActions, the system starts to animate the dialog into...

View Article

Static analysis strange result

I was investigating the use of magic numbers and I have simplified my experiment to the following program. I noticed that when I use the static analysis function in Xcode I get the message "Left...

View Article

Answer by koan for Qt not letting me create a menu item named after my app...

I don't know about Python; but on the Mac you create About, Preferences or Quit menu items and Qt will automatically shift them into the application menu on the left (the one with the bold text).I'm...

View Article
Browsing all 40 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>