Re: how do you suppose targetViewControllerForAction:sender: works?

2014-10-09 Thread glenn andreas
://lists.apple.com/mailman/options/cocoa-dev/gandreas%40me.com This email sent to gandr...@me.com Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: Good idea/bad idea?

2014-04-24 Thread glenn andreas
That won't do any good, since if the receiver is nil, it'll return nil (since nil isn't an object like it is in Smalltalk) So the only place where it actually gets called will be the places that don't need it. On Apr 24, 2014, at 3:10 PM, Alex Zavatone z...@mac.com wrote: Could we throw a

Re: dataWithPDFInsideRect doesn't clip images within NSView

2014-02-27 Thread glenn andreas
A PDF file can reuse an image and draw the same thing multiple times in multiple places. If it saved just the clipped version, it would need multiple copies of the same image, which would actually increase the file size. So if the purpose of adding a cropImages flags was to save file space, in

Re: Preserving undo actions on deleted targets

2014-01-30 Thread glenn andreas
On Jan 29, 2014, at 4:44 PM, Graham Cox graham@bigpond.com wrote: On 30 Jan 2014, at 8:03 am, Keary Suska cocoa-...@esoteritech.com wrote: Absolutely, and I have found it invaluable to troubleshoot state issues, but unfortunately it is not App Store safe (read: basis for rejection),

Re: start in NSOperation

2014-01-06 Thread glenn andreas
Turn on -Woverriding-method-mismatch $ xcrun clang --version Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix $ cat return.m #import Foundation/Foundation.h @interface ClassA :NSObject - (void) foo; @end @interface ClassB :

Re: Issues with NSTextView Attachments

2013-08-22 Thread glenn andreas
When NSTextView puts rich content on a pasteboard (for copy/paste or drag/drop), it converts the text to RTF. RTF has no concept of custom text attachment cells, so they get dropped. You'll need to add your own custom data type that preserves that content (such using an archive) On Aug 22,

Re: Converting to Arc → undeclared identifier

2013-08-20 Thread glenn andreas
On Aug 20, 2013, at 8:43 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 20 Aug 2013, at 20:27, Fritz Anderson anderson.fr...@gmail.com wrote: Sure, but the whole point the OP is trying to make is that the purported error is being raised by the refactoring process that is

Re: iOS splash screen animation

2013-04-10 Thread glenn andreas
On Apr 10, 2013, at 8:35 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Hi, When my app starts, I'd like to show a splash screen with a logo, etc, and animate it to the main screen after a short delay.

Re: iOS splash screen animation

2013-04-10 Thread glenn andreas
On Apr 10, 2013, at 9:47 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: On Apr 10, 2013, at 10:39 AM, glenn andreas gandr...@me.com wrote: Avoid displaying an About window or a splash screen. In general, try to avoid providing any type of startup experience that prevents people

Re: ARC question

2012-10-29 Thread glenn andreas
, since the time spent on the string is dependent on the number of escape sequences in the string, not the number of possible escape sequences. Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know

Re: iOS 6 self-update from beta?

2012-09-20 Thread glenn andreas
to some sort of engineering release) Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev

Re: stringWithFormat / Rendering Text (iOS)

2012-05-24 Thread glenn andreas
use NSString's drawAtPoint:withFont: and the like... Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list

Re: iOS app launching speed

2012-05-15 Thread glenn andreas
people from using your application immediately. Also, the user doesn't click on the app's icon, they tap on it (see the section entitled Apps Respond to Gestures, Not Clicks) Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability

Re: Array annotation strangeness

2012-05-09 Thread glenn andreas
[myAnnotation returnPropertiesInDict] since NSDictionary doesn't implement returnPropertiesInDict. Try: for (MyLocation * myAnnotation in self.mapView.annotations) Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind

Re: Device/Resolution independent positioning of GUI items on iOS

2012-03-19 Thread glenn andreas
that the runtime can easily substitute another XIB file dynamically to support different layout in iPhone vs iPad (or a different localization). If you hard code this into your code, you've got to hard code in all the differences in device layout as well as any localization specialization. Glenn

Re: Implementing Full Screen for 10.7 but app should also run on 10.6

2011-11-16 Thread glenn andreas
. Unlikely, but I wouldn't be surprised if this sort of thing hasn't bitten somebody at some point... (though probably with things like side effects of methods, and not different interpretations of constant flags) Glenn Andreas gandr...@gandreas.com The most merciful thing

Re: About iVars declaration and property

2011-11-15 Thread glenn andreas
so it know how to lay out its ivars. If there is no explicit ivars, there is no way for the compiler to know the size (since when it is compiling the subclass it doesn't see all the files that may potentially contain the parent's ivars). Glenn Andreas gandr...@gandreas.com

Re: UITextField and UIGestureRecognizers

2011-11-10 Thread glenn andreas
up. default is UITextFieldViewModeNever Seems like putting a button in the rightView that displays when not being edited would work fit with what you described... Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind

Re: Using version number in code

2011-10-21 Thread glenn andreas
://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com This email sent to gandr...@mac.com Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: Arc and performSelector

2011-10-17 Thread glenn andreas
= ... ... [ thing setValue: rep forKey: ivarKey]; } Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list

Re: adding something to a setter

2011-10-06 Thread glenn andreas
) setValue: (NSString *) value { self.sideEffectFreeValue = value; [self setNeedDisplay: YES]; } Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: [SOLVED] Re: Mystery of the missing symbol

2011-10-03 Thread glenn andreas
support running OS versions that are older than what was originally shipped with the device). Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: NSDateFormatter refuses to format dates

2011-09-27 Thread glenn andreas
to do with NSDateFormatter returning empty strings... Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list

Re: NSURLConnection: Greedy Memory Eater and Error 303

2011-09-09 Thread glenn andreas
errors. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: nonatomic vs atomic assign/retain

2011-09-07 Thread glenn andreas
] autorelease]; self.loadedCell = nil; } // configure and return cell... } Not to mention that retained IB outlets also need to be nil'ed out when the view is unloaded... Glenn Andreas gandr...@gandreas.com The most merciful thing

Re: rightMouseDown: never called in NSView subclass

2011-08-26 Thread glenn andreas
the original implementation. However, method swizzling always feels like a dirty workaround so I'm not sure if it would be much better than this (and if it would be acceptable in the MAS). Glenn Andreas gandr...@gandreas.com The most merciful thing in the world

Re: +[UINib nibWithNibName:bundle:] and ~iPhone

2011-08-17 Thread glenn andreas
This email sent to gandr...@mac.com Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev

Re: CGContextShowTextAtPoint doesn't show text

2011-08-09 Thread glenn andreas
, you can even animate the shadow. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev

Re: UITableViewController, with table view not the root of its nib?

2011-08-03 Thread glenn andreas
, since the table view may have made a new cell that ends up layered covering your view) Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: Unnecessary Boolean Warning

2011-08-03 Thread glenn andreas
left-to-right evaluations; moreover the second operand is not evaluated if the first operand is non-zero (p191, section 7.12 Logical OR operator) Nothing vague there. More likely the somebody that interviewed you didn't have it correct in the first place, scarring you for life... Glenn

Re: UIAlertView with UITextField

2011-07-27 Thread glenn andreas
requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com This email sent to gandr...@mac.com Glenn Andreas gandr

Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread glenn andreas
://lists.apple.com/mailman/options/cocoa-dev/gandreas%40mac.com This email sent to gandr...@mac.com Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: Using a Soundex category...

2011-07-06 Thread glenn andreas
to be a first character (since otherwise you'll get into trouble with its drop double letters step). The code appears to not care what the first character is (i.e., doesn't test for alphabetic characters), so you could probably use something like #. Glenn Andreas gandr...@gandreas.com

Re: UIKeyboard (without Text filed)

2011-05-24 Thread glenn andreas
+site%3Aapple.com Jeff You can always have the text field be way off screen (that's the easy way, and works on older systems), or you can have a view that implements the various UIKeyInput protocol methods and have it become the first responder. Glenn Andreas gandr

Re: iOS nib weirdness...

2011-05-04 Thread glenn andreas
-space collisions; they might unwittingly override an existing private method with one of their own, with disastrous consequence. You may be seeing one of those disastrous consequences Glenn Andreas gandr...@gandreas.com The most merciful thing in the world

Re: iOS Best Practice Question

2011-04-26 Thread glenn andreas
controller and let the user select the element from that table view, just like Settings.app does, etc...) Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread glenn andreas
that has tags declaring it to not have alpha would be non-conformant with the TIFF spec). Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: Notifications and Subclassing

2011-03-08 Thread glenn andreas
a classic memory management problem. Most likely, you're forgetting to unregister your observer when you are deallocating it (resulting in a notification center to have a stale pointer that is later reused by an NSString). Glenn Andreas gandr...@gandreas.com The most merciful

Re: NSXMLParserDelegateAbortedParseError

2011-03-08 Thread glenn andreas
by the server): - (NSError *)parserError; // can be called after a parse is over to determine parser state. This error is the parser state, which since you explicitly aborted the parse, will be something like NSXMLParserDelegateAbortedParseError -512. Glenn Andreas gandr

Re: Outlets Not Connected In awakeFromNib

2011-03-02 Thread glenn andreas
everything all at once - if that view is never displayed (say, on a tab bar controller tab that the user never selects), its nib will never be loaded. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread glenn andreas
will result in loss of accuracy (since 0.1 can't be expressed exactly in binary), where as NSDecimal will be able to handle it correctly. For that matter, 52 bits of mantissa on a double is only approximately 16 decimal digits (no where near as close as the 38 decimal digits of NSDecimal). Glenn

Re: Home-brewed code is 100X faster than -[NSScanner scanDecimal:] ??

2011-02-03 Thread glenn andreas
things like +123) Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: How to scale a TabBarItem Image

2011-01-26 Thread glenn andreas
for that screen only and not for any others. What you are attempting to do is going to be an issue that can get prevent your app from being approved in the App Store. Rethink your UI design and approach - you'll be better off in the long run... Glenn Andreas gandr

Re: execute system(some script) on behalf of root from non-root app

2011-01-06 Thread glenn andreas
%40mac.com This email sent to gandr...@mac.com Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list

Re: iOS when is my app launched

2010-12-08 Thread glenn andreas
the experience rather than drawing attention to it. So Default.png is not suppose to be a splash screen, and you're suppose to strive to make it go away as fast as possible - not figure out ways to display it for longer... Glenn Andreas gandr...@gandreas.com The most

Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread glenn andreas
!!, CGFloat a = atan2(-dx,dy); atan2's parameters are declared as: double atan2(double y, double x); Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread glenn andreas
the scroll/content inset), which can be a painful mess, especially trying to support both pre 3.2, and 3.2/4.x (since not only are the keyboard notifications different, but it deals with the view being presented in the variety of different ways - sheet, full screen, etc...) Glenn Andreas

Re: NSTask with unzip

2010-11-28 Thread glenn andreas
/decompression. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: iOS location enabled?

2010-11-24 Thread glenn andreas
, but can we get (read) access to that programmatically? CLAuthorizationStatus status = [CLLocationManager authorizationStatus]; Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: Running JavaScript in iOS WebView.

2010-11-17 Thread glenn andreas
to complete). So if your JavaScript code is waiting for completion, you're going to have to refactor that code to work more asynchronously and not block. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind

Re: RTFDFromRange returns different data

2010-11-11 Thread glenn andreas
but probably includes things like time stamps or unique IDs. So it is not a bug - archiving the same original data is not guaranteed to return byte-for-byte identical archived results (but will return the same thing when unarchived). Glenn Andreas gandr...@gandreas.com

Re: AM/PM letter UNICODE issues

2010-10-18 Thread glenn andreas
their time format to use 24 hour time and so would expect to see 13:00 and not 1:00p. Bottom line is trying to display time in a non-standard format is going to be problematic and have support issues. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world

Re: reused tableViewCell UILabel text is deallocated but not nil ??

2010-10-07 Thread glenn andreas
it !! It probably does (and so needs to send a release to the old value). What is likely happening is that you've got your memory management screwed up somewhere, and are over-releasing the (what will be the old) string value, which causes the text fields text ivar to point to garbage. Glenn

Re: UITableview scrollStyle

2010-09-24 Thread glenn andreas
just set the scrollbar type. However, like UIScrollView, you are limited to three choices - all black, all white, or black with a white border... Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate

Re: Box soft shadow?

2010-08-23 Thread glenn andreas
, and found something for text, but not just for a simple square shape. Draw with CGContextShadow set appropriately, or set the shadow property of the CALayer of the UIView (if you are requiring iOS 3.2 or later) Glenn Andreas gandr...@gandreas.com The most merciful thing

Re: who stole my UIView?

2010-08-12 Thread glenn andreas
delegate, you should never set the view as a delegate of another CALayerobject. Additionally, you should never change the delegate of this layer. Basically you're break the underlying plumbing, connecting the cold water to the electrical, and wondering why your water tastes tingly... Glenn

Re: NSKeyedArchiver on OSX to NSKeyedUnarchiver iOS

2010-08-11 Thread glenn andreas
to get from AppKits default attributed string support. So you'll probably have to give up on using AppKit's NSAttributedString extensions all together, and switch to the CoreText ones (and take advantage of the CFAttributedString/NSAttributedString toll free bridging). Glenn Andreas

Re: [iPhone] UITableViewCell Height with UIWebView content

2010-08-10 Thread glenn andreas
to display styled text inside a table row, you can use things like NSAttributedString/CoreText (or for pre 3.2 support, CFAttributedString custom drawing routines). Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind

Re: CGImage to NSImage, or PDFPage?

2010-08-10 Thread glenn andreas
10.5? Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Unarchiving issues

2010-08-02 Thread glenn andreas
returnedLength:size]; NSAssert(size == [self continuationsSize] * sizeof(float), @Bad size of bytes returned from decoding); memcpy(continuations, bytes, size); Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind

Re: setValue:forKey: and invocation forwarding

2010-07-13 Thread glenn andreas
the method table (instead of calling respondsToSelector:). I'd just override valueForKey: and setValue:forKey: in your class to handle forwarding those to your wrapped object. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability

Re: Custom views in navigationbar (iOS 3.2)

2010-06-23 Thread glenn andreas
this, you should flatten your information hierarchy. So once you spend hours and hours coding and getting this working perfectly, it will probably end up being rejected by the AppStore approval process. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world

Re: [iPhone] Preprocessing events sent to UITableView

2010-06-05 Thread glenn andreas
On Saturday, June 05, 2010, at 05:51PM, WT jrca...@gmail.com wrote: I need to hijack the set of touch events sent to a UITableView instance prior to allowing the table to process those events. I have a custom UIView, of which the table view is a subview, and I override -hitTest:withEvent:

Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread glenn andreas
if your design requires a view living in anything other than the main window, you should probably redesign it (or be prepared for lots of debugging and testing, since the way multiple UIWindows work varies between OS release, and possibility of rejection from the AppStore when you submit it) Glenn

Re: CFAttributedString and NSDATA

2010-06-03 Thread glenn andreas
in AppKitAdditions. If you have specific things in mind that you need, you should file an enhancement request at bugreporter.apple.com. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents

Re: Regarding MVC design pattern

2010-05-20 Thread glenn andreas
] init]; when it gets to (2), calls the super init and at (1) ends up calling code at (3). But self.uniqueId will be nil (since the code at (4) hasn't been reached yet), and the -[Transcript setProperty:ofObject:toValue:] may not be able to deal with nil as the object parameter. Glenn

Re: NSCalendar date calculation anomaly

2010-04-28 Thread glenn andreas
in the desired unit. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Toll free bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread glenn andreas
in kCTForegroundColorAttributeName, while drawString: expects to have the color specified as an NSColor in NSForegroundColor. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: [NSMutableArray array]

2010-04-08 Thread glenn andreas
: NSCenterTextAlignement]; to work. It doesn't (since ps is actually an immutable NSParagraphStyle). The major clue that is isn't a convenience creation method being found in the declaration: - (NSParagraphStyle *) defaultParagraphStyle; instead of: - (id) defaultParagraphStyle; Glenn Andreas

Re: Wondering about that iPad page curling

2010-04-06 Thread glenn andreas
-page-curl.html -- Gleb Dolgich http://pixelespressoapps.com On 6 Apr 2010, at 16:56, Laurent Daudelin wrote: So, no other response from the regular crowd of resident experts on how Apple engineers did this? Glenn Andreas gandr...@gandreas.com The most merciful thing

Re: ImageIO on iPhone

2010-02-16 Thread glenn andreas
ImageIO from C++, that should be possible, shouldn't it? Not on the iPhone - file an enhancement request... Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: NSXML and gt;

2010-02-09 Thread glenn andreas
The XML spec does not require '' to be escaped as 'gt;' (except in the case of ']]' when that doesn't mark the end of a cdata section). Only '' and '' must be escaped - see section 2.4 of XML 1.0 spec. Sent from my iPhone On Feb 9, 2010, at 2:19 PM, Keith Blount keithblo...@yahoo.com

Re: Displaying animated content in iPhone app

2010-01-28 Thread glenn andreas
that you write the code to decode the GIF files into the frames you need). Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: iPhone: CATransition done (get the key?)

2010-01-13 Thread glenn andreas
that take a time value and create a value - it's up to the layer to decide what to do with that value. You can always use CALayer's animationForKey: to find out if it the animation for a specific key: if ([theLayer animationForKey:@fadeIn] == theAnimation) { } Glenn Andreas

Re: Snapshotting hidden UIViews

2010-01-13 Thread glenn andreas
of their rendering is handled by the view's layer. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list

Re: Snapshotting hidden UIViews

2010-01-13 Thread glenn andreas
On Jan 13, 2010, at 9:46 PM, Michael Gardner gardne...@gmail.com wrote: On Jan 13, 2010, at 5:07 PM, glenn andreas wrote: On Jan 13, 2010, at 4:48 PM, Michael Gardner wrote: I also tried calling -drawRect: on my hidden view (after setting the context with UIGraphicsBeginImageContext

Re: NSDate without time portion

2010-01-05 Thread glenn andreas
), the resulting date will print differently, but timeIntervalSinceReferenceDate will be unchanged. It is ultimately the date formatter that handles time zones, daylight savings time, etc... Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad

Re: passing a method name?

2009-12-22 Thread glenn andreas
on the SEL passed in)... Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Autorotation for a subview

2009-12-22 Thread glenn andreas
an NSNotification. The subview can then respond to it. m. Or just mark the subview as needing layout and then have the subview figure things out in layoutSubviews. Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know

Re: Intercepting events and touches in UIPickerView subclasses? (or, WTF is going in the UIPickerView's responder chain?)

2009-12-18 Thread glenn andreas
), and sendEvent: does a whole lot of work that you'll want to be careful not to break. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL

Re: NSNumber stringValue

2009-12-12 Thread glenn andreas
On Saturday, December 12, 2009, at 11:32AM, Ben Haller bhcocoa...@sticksoftware.com wrote: You should not compare floating point numbers for equality in most cases. This is true of any language on any platform. Indeed, some floating-point numbers (such as the one represented by the

Re: Question about touchesBegan

2009-12-09 Thread glenn andreas
application, all of these responders should be instances of your own subclasses of UIView. It's definitely worth reading, and re-reading, those docs - all sorts of nice explanations of how touch handling is handled can be found there... Glenn Andreas gandr...@gandreas.com http

Re: Button width should accomodate localized string

2009-11-29 Thread glenn andreas
On Nov 29, 2009, at 9:38 AM, Symadept wrote: Hi, How can I scale my button or Label to be able to accomodate the localized string? Any clues. Regards symadept That's the whole purpose of being able to localize the nib/xib... Glenn Andreas gandr...@gandreas.com

Re: Core Data: Specifying latest .mom resource. Was: NSMigratePersistentStoresAutomaticallyOption...

2009-11-24 Thread glenn andreas
it with the appropriate migration information). Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev

Re: Transparency Help

2009-11-23 Thread glenn andreas
one of the transfer modes like kCGBlendModeDarken or kCGBlendModeMultiply rather than generate multiple images, tweaking all their bits, custom kernels, etc... Both modes should cause black pixels to be drawn as black, and white pixels to not change the image at all... Glenn Andreas

Re: first responder being clobbered

2009-10-26 Thread glenn andreas
of viewWillAppear? Since the view technically isn't on screen yet (only that it will be), setting a first responder shouldn't be done then. Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! JSXObjC | the easy way to unite JavaScript and Objective C

Re: UITextField in UITableView covered by keyboard

2009-10-24 Thread glenn andreas
appropriately (which is what UITableViewController does). Way more easy than messing with frames (not to mention works correct - moving the frame will result in the other end of the scrolling range not being reachable). Glenn Andreas gandr...@gandreas.com http

Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-22 Thread glenn andreas
is not support to block the app like runModal does, but to work in conjunction with document architecture. You're basically fighting the frameworks, and the frameworks always win... Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous

Re: Displaying a view modally

2009-10-22 Thread glenn andreas
events (i.e., implements everything, but does nothing), give it a translucent gray background and make it the size of the window, and add it as a subview of the window, on top of everything else. Then add your modal content view on top of that blocking view. Glenn Andreas

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread glenn andreas
if the @implementation class details are different from the @interface ones, and, again, not that I'd ever admit to having done this, it is easy to accidentally write your implementation in your .h file and leave the pasted @interface in your .m). Glenn Andreas gandr

Re: Can I make custom pasteboard type for an object reference?

2009-10-16 Thread glenn andreas
from you pasteboard manager app. Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art ___ Cocoa-dev mailing list (Cocoa-dev

Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-15 Thread glenn andreas
, not a sheet. So you can probably make it look right, but you won't be able to make it work right (from the point of view of the user). Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know

Re: UIGraphicsBeginImageContext thread safety

2009-10-01 Thread glenn andreas
(which implies that there is a single, global ui graphics context variable use by all of UIKit to indicate where all UIKit based drawing should go). Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know

Re: Send POST data to browser

2009-09-17 Thread glenn andreas
as well as POST. Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Best way to determine what ip address are assigned to a given network interface.

2009-08-27 Thread glenn andreas
to fork off an extra task and parse the output when you can just look at the information directly... Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! m.o.t.e.s. | minute object twisted environment simulation

Re: UITableView updating problem

2009-08-13 Thread glenn andreas
of the selected row, go through and remove the check mark from the previous one). Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art

Re: UITableView updating problem

2009-08-13 Thread glenn andreas
On Aug 13, 2009, at 8:44 AM, Brian Slick wrote: On Aug 13, 2009, at 8:31 AM, glenn andreas wrote: You're using a sledge hammer (reloadData) when you need a small screwdriver. From UITableView.h: - (void)reloadData; // reloads everything from scratch. redisplays visible

Re: NSURLCache

2009-08-10 Thread glenn andreas
instance. But it absolutely did work - once implemented, my set the table view cell's image to an image from the net works nicely (and without it scrolling was painful at best). Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous

Re: [iPhone] Webview stringByEvaluatingJavaScriptFromString

2009-08-05 Thread glenn andreas
@'' + document.getElementByName('encrypted')] That will show you if there really is something there like you expect. Most likely, you're calling it at the wrong time, before the content has been fully loaded/rendered... Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun

Re: [iPhone] networking

2009-08-05 Thread glenn andreas
to contact them via public IP addresses. Of course, in the context of the original question (re: iPhone networking), the iPhone is almost never going to have a public IP address (being hidden behind WiFi or cell phone NATs). Glenn Andreas gandr...@gandreas.com http

  1   2   >