Re: Insetting a UIWebView while a keyboard is on screen

2014-05-28 Thread Nick Zitzmann
now when not to move the view? The AppKit has the -[NSApplication currentEvent] property, but I can't find any UIKit equivalent. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Insetting a UIWebView while a keyboard is on screen

2014-05-27 Thread Nick Zitzmann
usting the content inset won't work? Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-d

Re: Audio in WebView stop when close NSWindow

2013-08-23 Thread Nick Zitzmann
r. I haven't tried it, but based on my previous experience with IKImageBrowserView, the WebView ought to carry on as if nothing happened… Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Connect to Server on LAN over WiFI

2013-07-31 Thread Nick Zitzmann
On Jul 31, 2013, at 11:35 AM, koko wrote: > I just need some direction here. > > Given a server on a LAN how do I connect to the server, i.e what iOS API do I > use? What kind of server? What protocol does the server use? What are you trying to accomplish? Nick Zi

Re: Unrecognized selector -[UIFont fontName]?

2013-07-15 Thread Nick Zitzmann
CTFontRef are toll-free bridged, I don't see any official documentation stating that UIFont and CTFontRef are toll-free bridged, so I'm pretty sure the answer is no. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing l

NSTableView/NSOutlineView view-based group rows/items span the whole column?

2013-06-22 Thread Nick Zitzmann
one, since view-based outline views can do a few more things than cell-based views, but the existing cell-based view displays a different cell (not text cells) in each column on group item rows, so this "feature" seems like a pretty big regression if it can't be disab

Re: Staying on integrated GPU while using NSOpenGLView

2013-06-12 Thread Nick Zitzmann
y, and uses NSOpenGLPixelFormat to set up its pixel format. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: Staying on integrated GPU while using NSOpenGLView

2013-06-11 Thread Nick Zitzmann
ee above apparently prevents the discrete switch-over from happening. Since it's undocumented, the usual disclaimers apply: use it at your own risk, it may break in the future, and all that. Nick Zitzmann <http://www.chronosnet.com/> ___

Re: Nib image caching

2013-05-28 Thread Nick Zitzmann
On May 28, 2013, at 4:25 PM, James West wrote: > Does anyone know if nibs cache images or not inside of UIImageView? They don't. IIRC early versions of OS X allowed this, but it was taken out pretty quickly. Nick Zitzmann <http://www.chr

Re: Detect whether UIRefreshControl can be used

2013-05-08 Thread Nick Zitzmann
ne you wrote above checks to see if the method "setRefreshControl" exists inside the method's own class. I doubt that's your intention, especially since set-methods typically take an argument, and if the method takes an argument, then you woul

Re: Trouble linking libcommonCrypto in iOS 6.1

2013-05-06 Thread Nick Zitzmann
, is not part of iOS, and is deprecated on OS X (but is still widely used because it has several functions that are currently not available in CommonCrypto or the Security framework). Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev m

Re: Trouble linking libcommonCrypto in iOS 6.1

2013-05-06 Thread Nick Zitzmann
. What are you trying to accomplish? You normally do not need to link a target directly to libcommonCrypto; it is part of libSystem, the standard C library, and therefore gets automatically linked to the target unless you manually turned that off. Nick Zitzmann &

Re: LSGetApplicationForURL() failed Error -10814

2013-04-29 Thread Nick Zitzmann
happened? The documentation for LSGetApplicationForURL() says: "If no application suitable for opening the item is found in the Launch Services database, the function will return the result code kLSApplicationNotFoundErr." kLSApplicationNotFoundError is error -10814

Re: sandboxd deny hid-control weirdness

2013-04-25 Thread Nick Zitzmann
ned on Ink, and Ink is attempting to send HID events, which the sandbox is striking down. This is normal, and there is no workaround because Apple refuses to allow sandboxed apps to send HID events. In the past, using Ink also blocked sandboxed apps from receiving mouse-up events, thoug

Re: Clang "File not found" - in cocoa app

2013-04-20 Thread Nick Zitzmann
On Apr 18, 2013, at 1:51 AM, Christ Levesque wrote: > I used clang in my cocoa app but it doesn't find Clang/Index.h. The error is > "File not found". I linked to clang but again it doesn't find it. Anybody > knows what's the problem. What are you trying t

Re: Core Data grinds for 30 min saving SQLite. 10.6 Bug?

2013-04-15 Thread Nick Zitzmann
user could use Instruments' object allocation instrument to figure out what's going on…? That would require installing Xcode from the App Store. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Core Data grinds for 30 min saving SQLite. 10.6 Bug?

2013-04-15 Thread Nick Zitzmann
es up to twice the size of the managed object when updating or deleting (!) the object, so if you have an object that is a few hundred megabytes in size and the process is running in 32-bit mode, then it may not be able to update/delete the object. Nick Zitzmann <http://www.chr

Re: NSImage leaks open file in 10.8.2?

2013-02-13 Thread Nick Zitzmann
g behind the scenes, and this is explained in the method's documentation. If you need image files to be opened, read into memory, and then closed, then the first thing I would try is initializing them from unmapped NSData objects created using +dataWithContent

Re: NSUserNotificationCenter: Spoofing the app name/icon?

2013-02-13 Thread Nick Zitzmann
On Feb 13, 2013, at 3:25 AM, jonat...@mugginsoft.com wrote: > Is it not possible to use IPC to have the helper message the client app so > that the client does the actual posting? The client might not be running at the time. Nick Zitzmann <http://www.chron

NSUserNotificationCenter: Spoofing the app name/icon?

2013-02-12 Thread Nick Zitzmann
per app helps, and use a different icon if at all possible. How do I do that? It should be possible because I suspect CalendarAgent is spoofing Calendar.app… Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Nick Zitzmann
gt;> there may be two week 1s in a year. > > Short answer: Use NSYearForWeekOfYearCalendarUnit. Thanks, Kyle and Greg. That was what I needed. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.

NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Nick Zitzmann
y) in the components, and I got the same incorrect results. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: Font names

2012-12-21 Thread Nick Zitzmann
or something similar. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)li

Re: Font names

2012-12-21 Thread Nick Zitzmann
but there is this: <https://en.wikipedia.org/wiki/List_of_typefaces_included_with_OS_X> Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Making an automatic vertically expanding NSTokenField?

2012-12-19 Thread Nick Zitzmann
;s field editor. But whenever I call it, it always returns zero size even though there are tokens in the field. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: URL Request from AppDelegate?

2012-12-12 Thread Nick Zitzmann
al:] and see for yourself. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(a

Re: Remote control desktop from iPhone

2012-12-06 Thread Nick Zitzmann
I am no networking/Bonjour guru. MYNetwork will get you half-way there: <https://bitbucket.org/snej/mynetwork/wiki/Home> Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: "Dangling reference to an invalid object"

2012-12-03 Thread Nick Zitzmann
ave changes So if you're getting this exception, you need to be more careful about using the -refreshObject:mergeChanges: method, because the code is most likely misusing it. One way to fix this is to never refresh an object that has a temporary object ID. Ni

Re: Mysterious crash report

2012-11-14 Thread Nick Zitzmann
On Nov 14, 2012, at 2:26 PM, Graham Cox wrote: > We got this crash report associated with our app, which has us scratching our > heads. It does not seem to be reproducible, but what does it mean 'API > MISUSE'? Does your app use RR, GC, or ARC memory management?

Re: Core Data user Info

2012-11-02 Thread Nick Zitzmann
have to write to sync data with Sync Services. Sync Services was deprecated in favor of iCloud in Lion. Anyway, you can ignore these properties if your project doesn't use Sync Services. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev ma

Re: Warning message using stringWithContentsOfFile:encoding:error:

2012-10-27 Thread Nick Zitzmann
hten me? Check the headers. Is there anything that is #defining error to Rf_error? Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Position of my item in the statusBar

2012-09-17 Thread Nick Zitzmann
set a status item's target, and then cycle through the app's windows to find a window with a contentView with a target that is identical to the status item's target, then that window is the status item's window. You should be able to get the status it

Re: fragile ABI and PPC64

2012-08-20 Thread Nick Zitzmann
hat WebKit was unstable, and QTKit even lost its PPC64 support in a security update. It was for reasons like these that we decided to drop PPC64 support in our GUI apps, and require Snow Leopard for the X86-64 builds. I never noticed any problems in the 64-bit non-GUI frameworks,

Re: 32-bit on 10.8

2012-08-09 Thread Nick Zitzmann
plug. Out of curiosity, what's the hold-up? I ported a rather large code base to 64-bit in a day or two, and the only hard part was porting some code that used the Sequence Grabber over to the newer QTCapture classes. Nick Zitzmann <http://www.chronosnet.com/> __

Re: Debugging -setNeedsDisplayInRect:

2012-08-06 Thread Nick Zitzmann
On Jul 27, 2012, at 10:36 AM, Curt Clifton wrote: > On Jul 27, 2012, at 8:55 AM, Nick Zitzmann wrote: > >> But I need to be able to see **all** invocations of the method from **all** >> NSViews to catch the culprit, because I have a rather complicated view >> hierarc

Re: Debugging -setNeedsDisplayInRect:

2012-07-27 Thread Nick Zitzmann
On Jul 27, 2012, at 2:35 AM, Markus Spoettl wrote: > On 7/27/12 5:10 AM, Nick Zitzmann wrote: >> I've got a view that, according to Quartz Debug, is invalidating a large and >> unnecessary portion of the view when certain user events happen. >> >> The problem is

Debugging -setNeedsDisplayInRect:

2012-07-26 Thread Nick Zitzmann
cture is placed on the stack, but how do I break on a variable buried within the stack? Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: saving images

2012-07-21 Thread Nick Zitzmann
On Jul 21, 2012, at 10:41 AM, H. Miersch wrote: > > On 21. Jul 2012, at 17:37, Nick Zitzmann wrote: > >> >> On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: >> >>> i just started a new ios project where i want to download images using >>> NSimag

Re: saving images

2012-07-21 Thread Nick Zitzmann
ad the data given the URL using NSData, and use the NSData to initialize the image. Then you can just save the NSData to storage. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Adding Properties to NKIssue?

2012-07-02 Thread Nick Zitzmann
d ivars in a category, so you'll have to write the corresponding accessor method(s) yourself. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: sandbox question about copying from bundle

2012-06-22 Thread Nick Zitzmann
pp should have full access to its sandboxed Library folder and subfolders. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: How to get SDK 10.5 on XCode 4?

2012-06-05 Thread Nick Zitzmann
the most heavily QA'd products in the marketplace, so actual compiler bugs are quite rare. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Nick Zitzmann
On Jun 4, 2012, at 5:26 PM, Michael Hall wrote: >> What new GCC? Xcode 4 dropped GCC in favor of LLVM. > > gcc -version > i686-apple-darwin11-llvm-gcc-4.2: no input files That's not GCC; that's LLVM-GCC, or LLVM with a GCC front-end. The real GCC was dropped from Xcod

Re: How to get SDK 10.5 on XCode 4?

2012-06-04 Thread Nick Zitzmann
for 10.6 > and 10.7, how can I get the 10.5 SDK? You can't. > And is it even possible to use it > with the new GCC. I'm not using XCode for development and rather use the > command line tools directly. What new GCC? Xcode 4 dropped GCC in favor of LLVM. Nic

Re: NSXMLParser thread safe?

2012-06-01 Thread Nick Zitzmann
n't difficult to do using either the pthread or NSThread APIs. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Sandboxing. WTF?

2012-05-30 Thread Nick Zitzmann
ason, remote desktop servers also cannot run in the sandbox. Apps that rely on NSWorkspace for much of their functionality also can't run in the sandbox. And the list goes on... Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mail

Re: Sandbox console messages

2012-05-21 Thread Nick Zitzmann
submit an app that generated > these messages for App Store Review? It's always okay to submit an app. Whether it will be accepted or rejected depends on whether or not it complies with the review guidelines, which are posted on ADC. Nick Zitzmann <http://www.chronosnet.com/> _

Re: crashes loading saved file

2012-05-09 Thread Nick Zitzmann
ates temporary objects into @autoreleasepool blocks. If you're using GC memory management, then you might need to manually run the collector more often. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Save panel showing as a blank sheet

2012-04-27 Thread Nick Zitzmann
lso saw something related to errors in mounting of a volume in system log. > Could it be the reason? > Any thoughts? Just checking: You are running the save panel from the main thread, right? And you're sure of that, right? Nick Zitzmann <http://www.chronosnet.com/> _

Re: Declaring Variables - Setting to nil VS Not Setting?

2012-04-26 Thread Nick Zitzmann
e in the function/method. Never read from uninitialized memory unless you **really** know what you're doing. > Thanks and pointers to docs are welcome. This is C programming language 101, so I'd recommend you read a good book on C programming, particularly one that deals with

Re: Webview cache location

2012-04-13 Thread Nick Zitzmann
t; So: what goes into this cache, and who is writing / reading it? The Cache.db is I think managed by NSURLCache, which is used by NSURLConnection, which is used by WebView on OS X to handle HTTP requests. Nick Zitzmann <http://www.chronosnet.com/> ___

Re: Webview cache location

2012-04-13 Thread Nick Zitzmann
p bundle identifier here]/Cache.db assuming it's not sandboxed. If it's sandboxed, then look in ~/Library/Containers/[your app bundle identifier here] to find its sandbox. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mail

Re: NSScrollView automatically changes scroller styles?

2012-03-30 Thread Nick Zitzmann
g NSScrollView and overriding -setScrollerBehavior: to do nothing when called. My app doesn't place anything in the scroller areas. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSScrollView automatically changes scroller styles?

2012-03-27 Thread Nick Zitzmann
On Mar 27, 2012, at 2:09 PM, Nick Zitzmann wrote: > I've searched around but didn't see anything relevant. Why would an > NSScrollView suddenly change its scroller style behind the application's back > during a resize? I still wish I knew why this was happening, but

NSScrollView automatically changes scroller styles?

2012-03-27 Thread Nick Zitzmann
le. Why is this happening? I'm looking for a workaround now, but I was wondering if anyone has seen this before, and if so, then how did you work around it? I don't want the scroll view using the legacy style for any reason whatsoever. Nick

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Nick Zitzmann
r. You can do that by clicking on the + button in the breakpoints view in Xcode and then choosing to break on exceptions. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Installing & running Xcode

2012-03-21 Thread Nick Zitzmann
Stop right there; Xcode 1.0 was intended for Panther, not Tiger. If you're still using Tiger, then you need to use Xcode 2.x. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Serial I/O over USB

2012-03-20 Thread Nick Zitzmann
t. I can > use the Arduino built-in serial monitor, but that only prints the serial > characters to the screen, and the data can't be saved. I want to graph the > data in real time (that part isn't relevant to my question however). <http://sourceforge.net/projects/amserial/&g

Re: How is this an "incorrect decrement of a reference count"?

2012-03-19 Thread Nick Zitzmann
ecessary if you used NSBundle to load the nib manually. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: const correctness

2012-03-19 Thread Nick Zitzmann
s you mask them or send the message indirectly). The only way to make a mutable array immutable is to make an immutable copy of the array. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: ivar access during -finalize

2012-03-08 Thread Nick Zitzmann
freeing up memory allocated outside of the garbage collector's zone, so if you must clean something up that isn't RAM, you should figure out an alternative way of doing so. But if you really must use -finalize to clean up something that's not a manually allocate

Re: Finding object array index when iterating through array

2012-03-08 Thread Nick Zitzmann
on or do I > have to add a counter? Unless you must support Leopard or iOS 3, I'd recommend using -enumerateObjectsUsingBlock: instead, which will give you both the object and its index in the array. Nick Zitzmann <http://www.chronosnet.com/> _

Re: Accessing array in thread safe way

2012-03-07 Thread Nick Zitzmann
ter help if I knew more about what you were trying to accomplish. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-24 Thread Nick Zitzmann
wn thing, but the compilers that come with Xcode are pretty good with standards compliance. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: Determining user's clock preference on iOS

2012-02-23 Thread Nick Zitzmann
ot;am" and "pm" strings are localized for the user by the date formatter when turning a date into a string, so it's okay to just parse the format string returned by the date formatter (but not the results of feeding a date into it). Nick Zitzmann <http://www.chron

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2012-02-17 Thread Nick Zitzmann
ndboxed apps aren't allowed to use NSAppleScript or AESend() to communicate with the outside world for the same reason. They get temporary exceptions, but the "temporary" means they might be taken away... Nick Zitzmann <http://www.chronosnet.com/> _

Re: CGContextSaveGState

2012-02-15 Thread Nick Zitzmann
perations are always pushed to/popped from a stack. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: how to redraw NSStatusItem in cocoa

2012-02-14 Thread Nick Zitzmann
a view status item, then you call [statusItem.view setNeedsDisplay:YES]. What are you trying to accomplish? Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Mouse up events ignored when sandboxing is turned on?

2012-01-03 Thread Nick Zitzmann
On Dec 30, 2011, at 12:49 PM, Nick Zitzmann wrote: > The really strange thing is, this works as expected when sandboxing is turned > off. It also works as expected if the window was active. But I can't ship the > application with sandboxing on unless I can figure out how

Mouse up events ignored when sandboxing is turned on?

2011-12-30 Thread Nick Zitzmann
can figure out how to fix or work around this. Has anyone seen this before, and if so, then how do I make this work? Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: How to make a global contextual menu item

2011-12-30 Thread Nick Zitzmann
textualMenuHelper" source code. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: How to add "filter" to capture video from the camera?

2011-12-28 Thread Nick Zitzmann
to do to the frame, and it will be included in the final video. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m

Re: NSTableView - how to dynamically change the height of the elements?

2011-12-14 Thread Nick Zitzmann
; table view to relayout itself completely from scratch. > How can I do that? > I have tried -setNeedsLayout:YES and -setNeedsDisplay:YES, but with no effect… Did you try -noteHeightOfRowsWithIndexesChanged: by any chance? Nick Zitzmann <h

Re: Filling gradient in NSTableHeaderView not working properly

2011-12-13 Thread Nick Zitzmann
cell in each NSTableColumn. You'll still need to draw the separator lines yourself, though. Thankfully, that is easy to do using NSBezierPath. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: dragging to desktop

2011-12-01 Thread Nick Zitzmann
ill this also work when sandbox'ed? I doubt it. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

Re: "byte orders" question

2011-11-25 Thread Nick Zitzmann
hem on big-endian CPUs, and they return a reversed byte order number on little-endian CPUs. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: Exception when entering too big value in text field (with number formatter)

2011-10-21 Thread Nick Zitzmann
race shows the problem happened completely within the AppKit, then it is a framework bug. Otherwise, your code most likely over-released something. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Launching 10.5 app on 10.4

2011-10-18 Thread Nick Zitzmann
here the key-value is ignored, but nobody uses Cheetah or Puma anymore [2] since Leopard's 64-bit frameworks were very immature Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Deploy terminal app

2011-09-22 Thread Nick Zitzmann
you try PackageMaker (which comes with the developer tools)? Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Launching an app with extended rights

2011-09-18 Thread Nick Zitzmann
his approach the way to go, or is there an easier/better/safer way do to > that? You must use AuthorizationExecuteWithPrivileges() to launch a task with privileges; you cannot do that with NSTask. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Coco

Re: Proper handling of NSSavePanel and 'Do you want to replace it?' dialog

2011-09-16 Thread Nick Zitzmann
d noticed that when TextEdit overwrites an existing RTFD bundle, TextEdit deletes the existing bundle and creates a new one in its place. (You can see this for yourself by using the fs_usage tool.) And since TextEdit is the most "Mac-like" app I know, I believe the correct techniq

Re: Size of a file on disk

2011-08-31 Thread Nick Zitzmann
fork if present: <http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/Reference/Reference.html#//apple_ref/doc/uid/2140-BABDHICI> Nick Zitzmann <http://www.chronosnet.com/> __

Re: NSWindow setFrame:display: ceiling behavior?

2011-08-27 Thread Nick Zitzmann
coordinates at that resolution. > Is there another method that will > draw windows at non-whole number point sizes? No. What are you trying to accomplish? > Is this behavior the > same on higher-resolution devices? Maybe. Did you try it? You can see for yourself by running Quartz Debug

Re: NSCache objects not being collected under GC?

2011-08-19 Thread Nick Zitzmann
gt; as a workaround if the issue persists, you can recycle the NSCache instances. Yes, they are finalized if the code calls -removeAllObjects instead of removing the dictionary. I guess that'll have to do for now. Nick Zitzmann <http://www.chronosnet.com/> __

NSCache objects not being collected under GC?

2011-08-18 Thread Nick Zitzmann
, the NSCache objects were rooted by a non-object memory address created before main() was called, a long time before the objects were made. Also, I noticed that objects in the cache would not identify the cache as their root. (Is that normal?) Nick Zitzmann <http://www.chrono

[SOLVED] Re: Properly wrapping non-contiguous NSTextViews

2011-08-17 Thread Nick Zitzmann
]; [alteredStyle release]; if ([weDidTheseAlready containsObject:rangeValue]) *stop = YES; else [weDidTheseAlready addObject:rangeValue]; }]; [self endEditing]; } @end Nick Zitzmann <http://www.chronosnet.com/

Re: Revert Camera Image

2011-08-16 Thread Nick Zitzmann
ocumentation/QuickTime/Reference/QTCaptureView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40004572-CH3-DontLinkElementID_14> You have to implement that delegate method, and in the method, you can use a CoreImage filter to transform the image & return the output. You pro

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Nick Zitzmann
wrap the call in > performSelector:withObject:after delay:. For example, to remove pages you > could subclass NSLayoutManager and override > textStorage:edited:range:changeInLength:invalidatedRange: to send something > like [someController performSelector:@selector(checkForRemovablePages:) > withObject:sel

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Nick Zitzmann
On Aug 16, 2011, at 12:00 PM, Kyle Sluder wrote: > On Tue, Aug 16, 2011 at 9:59 AM, Nick Zitzmann wrote: >> But how? I can't use a single NSTextView because this is for a view where >> each text view corresponds to a single page of text, and so AFAICT text >> co

Re: Properly wrapping non-contiguous NSTextViews

2011-08-16 Thread Nick Zitzmann
On Aug 16, 2011, at 9:09 AM, Ross Carter wrote: > On Aug 15, 2011, at 6:19 PM, Nick Zitzmann wrote: > >> Of course, if there is a better way of using the Cocoa text system to layout >> multiple non-contiguous pages of text with margins, I'd like to hear about >> i

Re: Properly wrapping non-contiguous NSTextViews

2011-08-15 Thread Nick Zitzmann
p where you modify the text > container heights? You're not doing it from a layout delegate method are you? > NSLayoutManager is quite finicky about that (or at least it used to be). The code adds containers & views from a layout delegate, and gives them an initial size, bu

Re: Properly wrapping non-contiguous NSTextViews

2011-08-15 Thread Nick Zitzmann
ce the layout manager to not cut off text horizontally… It does prevent this from happening vertically through word wrapping. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: recomendations for creating a beta with date to expire

2011-08-14 Thread Nick Zitzmann
way. And requiring a network connection to run software that normally doesn't need a network connection, such as your proposal, is a major inconvenience for a lot of people. Restrictive DRM inconveniences people, and really restrictive DRM drives people to piracy if the pirated edition is m

Re: Properly wrapping non-contiguous NSTextViews

2011-08-13 Thread Nick Zitzmann
On Aug 13, 2011, at 7:41 AM, Ross Carter wrote: > On Aug 12, 2011, at 6:23 PM, Nick Zitzmann wrote: > >> I've got a problem that has been driving me nuts all day. I tried searching >> around and didn't see anything that helped. >> >> I have a series

Properly wrapping non-contiguous NSTextViews

2011-08-12 Thread Nick Zitzmann
o how do I prevent NSLayoutManager from drawing cut-off glyphs in a series of non-contiguous text views? Yes, I did make sure that the text container's size tracks the text view's size. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa

Re: Drag and Drop to Finder, destination location

2011-08-11 Thread Nick Zitzmann
ion as one of its arguments. I don't think your application can get that information if it is not performing a file promise drag. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

[SOLVED] Re: CoreData "I/O error for database: no such table"

2011-08-09 Thread Nick Zitzmann
nge part is, I did not rename the many-to-many relationship between database versions, and in the migrated database, the many-to-many table is not called "Z_16PARENTS" as I expected would happen after the migration. But I guess I shouldn&#x

Re: Scanning images

2011-08-09 Thread Nick Zitzmann
on it crashes after its window is closed. Besides, IKScannerDeviceView is far better than ICA. And TWAIN is the option of absolute last resort, and doesn't work correctly in 64-bit apps anyway because most TWAIN drivers are 32-bit only. Ni

CoreData "I/O error for database: no such table"

2011-08-04 Thread Nick Zitzmann
and while that did solve the problem, there has got to be a better way. But what is that way? I can't believe Xcode 4 would ship with such a regression in momc... Nick Zitzmann <http://www.chronosnet.com/> [1] http://www.cocoabuilder.com/ar

Re: irc client with cocoa

2011-07-27 Thread Nick Zitzmann
On Jul 27, 2011, at 3:54 AM, David Remacle wrote: > Hello, > > Is there a class or a small framework for irc client ? <http://lmddgtfy.com/?q=irc%20client%20framework> Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-de

  1   2   3   4   5   6   7   8   9   10   >