-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So I started reading this book:
http://www.amazon.com/Cocoa-Design-Patterns-Erik-Buck/dp/0321535022
On chapter 2 it explains about the MVC design pattern and gives and example which I need some clarification to.
The simple example shows a view with the following fields:
hourlyRate, WorkHours, Standarthours…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I want to drag a row from my tableview and drop it into any other NSTextField in Mac OS X 10.6, and have a string of text be dropped.
Drag and drop already works within my app (between a NSTableView and an NSBrowser), but I have had no success putting any data on the pasteboard that can…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to translate the a carbon method into cocoa into and I am having trouble finding any documentation about what the carbon method getPtrSize really does. From the code I am translating it seems that it returns the byte representation of an image but that doesn't really match up with the name…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I am trying to send some text in an email from my cocoa app (by using Mail.app). Initially I tried using HTML to send properly formatted text. But the mailto: URL does not support html tags (even after setting headers)
So I decided to use formatted string (left-aligning of string) This is what…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Having just updated Mono to 2.6.3 (on OS X), I noticed in the installer that cocoa# 0.9.5 is also installed. However using MonoDevelop there are no cocoa# project templates by default, and I was wondering if anyone knew more about creating cocoa# apps.
If you goto the cocoa# page on the Mono site…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I'm making a script that executes some commands inside, and these commands show some output on STDOUT (and STDERR as well, but that's no problem). I need that my script generates a .tar.gz file to STDOUT, so the output of some commands executed in the script also go to STDOUT and this ends with a…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm pretty new to Python so I am still just learning the language. One of the things I came across was reassigning sys.stdout to change the default output of print. So I wrote this as a test:
import sys
sys.stdout = open('log.txt','a')
print('hey')
sys.stdout.close()
sys.stdout = sys.__stdout__
print('hi')
Now…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
Hi,
I have been having this weird issue where mod_perl seems to lose STDOUT in the middle of the request. So far I have eliminated everything I could think of.
You might have seen this bug related to the following errors in error_log :
Apache2 IO flush: (103)
Apache2::RequestIO::read: (104)
Software…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I would like get access to progress information from lftp. Currently, I'm using curl like so:
curl http://example.com/file -o file -L 2> download.log
This writes curl's progress information to the download.log file, which I can tail to get real-time progress.
But the same approach doesn't work…
>>> More
-
as seen on Super User
- Search for 'Super User'
Hi when I use the command
crontab -e
to set up cron, the commands get triggered (according to syslog) but nothing happens. Also if I run sudo crontab -e.
The only way to actually get cron working is to manually etc
/etc/crontab
I'm confused, since syslog gives me the same output for both methods…
>>> More