Search results for

column

2,071 results found

Post

Replies

Boosts

Views

Activity

Reply to Investigating kext memory leak with lldb and KDK
Is there a way I can use the lldb user defined commands, which I can load from a KDK, to determine how much memory my kext has consumed? Is there a way to figure out what size blocks they are? Sort of. Keep in mind that your KEXT is simply a loadable library running inside the component, not an independant process/component. Just like in a user space process, there are a variety of mechanisms in place to associate memory allocations to components, but the information you get depends entirely on exactly what you're doing and why. In terms of commands, the kernel debugging command set has 400+ separate commands, many of which are specific to memory. You can see the full command list and a summary of each with the lldb command kgmhelp and each command accepts -h for more specific info. Taking zprint (one of the common starting points for looking at memory issues) as an example: (lldb) kgmhelp ... zprint - Routine to print a summary listing of all the kernel zones ... (lldb) zprint -h zprint: Routine to print a s
Dec ’24
VisionOS ARKit CameraFrame Sample Parameters Extrinsics
the following documentation tells me that the CameraFrame.Sample.Parameters.extrinsics is of type simd_float4x4, great! https://developer.apple.com/documentation/arkit/cameraframe/sample/parameters/4443449-extrinsics I have read in the answer of another post that this extrinsics represents the pose of the physical camera relative to the device anchor. Did I understand correctly that the device anchor is where the scene is rendered from onto the user's display? What is the coordinate system in which this offset is defined, which axis is left, which one is up, which one is forward? The last column of the extrinsics seems to define a translation of approximately 2 cm along the x axis, -2cm along the y axis and -5 cm along the z axis. I tried to measure the physical distance between the main left and right cameras in order to find out if it's rather 2cm or 5 cm from the middle, it looks more like 5, so I assume that the z axis is looking towards the right (from the user's perspective). Is that so? For x
4
0
864
Dec ’24
Reply to how to show stickers in 2 columns instead of 3 on iMessage sticker pack app.
You can always create a custom sticker pack to have maximum control. You can see an example here. There are options for setting the columns in the attributes inspector on the right side panel in Xcode. If this is not working correctly in the default Xcode templated sticker pack, that would be a bug. The only workaround would be to write a sticker pack from scratch. Rico WWDR | DTS | Software Engineer
Topic: Design SubTopic: General
Dec ’24
Finder File Previews lock files on SMB shares
I've developed a new Quicklook data-based preview extension for a custom file type that generates an image preview of the file. I previously used a Quick Look generator plug-in but support for it was deprecated and now removed in macOS Sequoia. My app opens files using a open(url.path, O_RDWR | O_NONBLOCK | O_EXLOCK) call. The locking flags are used to prevent other clients from writing the file if it's already open. I discovered that when Finder is showing the “large” file previews (such as when in column or gallery modes) from a SMB share, the open call fails with EWOULDBLOCK as if the file is locked. It does work just fine on local files. Opening with O_SHLOCK also has the issue. Surprisingly it does work just fine for previews that return Plain Text data instead of Image data. Using the lsof command, it seems like the Quicklook process has some kind of lock on the file. This is the output of the lsof command: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE QuickLook 48487 XXXX txt REG 1,15 12500061
8
0
783
Dec ’24
Reply to How to update data in a DataFrame
I’m not 100% sure I understand your question, but if you just want to modify a value at a known column / row then you can do that using subscripts. Here’s a simple example that corrects the publication date of Planet of Exile: import Foundation import TabularData let novels60s = Title,Year Rocannon's World,1966 Planet of Exile,1967 City of Illusions,1967 A Wizard of Earthsea,1968 The Left Hand of Darkness,1969 func test() throws { var df = try DataFrame(csvData: Data(novels60s.utf8)) print(before:n(df)) df[Year][1] = 1966 print(after:n(df)) } try test() It prints: before: ┏━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓ ┃ ┃ Title ┃ Year ┃ ┃ ┃ ┃ ┃ ┡━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩ │ 0 │ Rocannon's World │ 1,966 │ │ 1 │ Planet of Exile │ 1,967 │ │ 2 │ City of Illusions │ 1,967 │ │ 3 │ A Wizard of Earthsea │ 1,968 │ │ 4 │ The Left Hand of Darkness │ 1,969 │ └───┴───────────────────────────┴───────┘ 5 rows, 2 columns after: ┏━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓ ┃ ┃ Title ┃ Year ┃ ┃ ┃ ┃
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to main (left) camera transform
what is the DeviceAnchor? Is it the location from which virtual content (and camera passthrough) is rendered on the user's display(s)? My understanding of a 4 by 4 transformation matrix is that the last column represents the translation, while the first 3 columns represent the local x, y, and z axis. I have plotted the first three columns of the extrinsics matrix and they do not seem to be orthogonal to each other, what are the implications of that? I would expect just a translation and a rotation (without scaling/shearing) what is the coordinate system for these intrinsics? based on the first 3 columns, it seems to be x=right, y=down and z=forward. Is that correct? any help or link to well-written documentation very much appreciated. When I see the following documentation which only tells me the type of extrinsics, and literally nothing else than just the type, I find that insufficient. https://developer.apple.com/documentation/arkit/cameraframe/sample/parameters/4443449-e
Topic: Spatial Computing SubTopic: ARKit Tags:
Dec ’24
Reply to Can an Persional developer account develop, debug, and publish Network Extension apps?
[quote='769825021, yuhantu, /thread/769825, /profile/yuhantu'] Can an Persional developer account develop, debug, and publish Network Extension apps? [/quote] No, presuming that you’re talking about a Personal Team. The Apple Developer column in Developer Account > Reference > Supported capabilities (iOS) shows what you can do with a Personal Team. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Dec ’24
Reply to Help Loading an External CSV File on iOS in Swift
I was able to load a CSV into a TabularData based SwiftUI app -- loading and displaying was no issue ... but, HOW to update a value in a column. I created a bindable textfield for the columns in the table, and it displays the value for the rows/columns, and while the code to update the column compiles, it never updates the value in the DataFrame. Is a DataFrame read only ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
How to update data in a DataFrame
My project loads a CSV into a DataFrame and displays it in a Table (a MacOS app). So far so good ... but when trying to update a value in a column, I dont see anyway to update this value. The table gets the value for the column like this: func getColumnValue(row :DataFrame.Rows.Element, columnName :String) -> String { if row.base.containsColumn(columnName) { var value = if row[columnName] != nil { value = (row[columnName]!) } return value } ... But the documentation and googles dont show any way to update the same column. Any help is appreciated with cookies. Attempt to update: func setColumnValue(row :DataFrame.Rows.Element, columnName :String, value :String) { var column: [String?] = data[columnName] column[row.id] = value ... }
6
0
705
Nov ’24
mp3 audio plays on my device and simulator but some users have issue
Hi I just released an app which is live. i have a strange issue: while the audio files in the app play fine on my device, but some users are unable to hear. One friend said it played yesterday but not today. Any idea why? The files are mp3, I see them in Build Phase, and in the project obviously. Here's the audio view code, thank you! import AVFoundation struct MeditationView: View { @State private var player: AVAudioPlayer? @State private var isPlaying = false @State private var selectedMeditation: String? var isiPad = UIDevice.current.userInterfaceIdiom == .pad let columns = [GridItem(.flexible()),GridItem(.flexible())] let tracks = [Intro:intro.mp3, Peace : mysoundbath1.mp3, Serenity : mysoundbath2.mp3, Relax : mysoundbath3.mp3] var body: some View { VStack{ VStack{ VStack{ Image(dhvani).resizable().aspectRatio(contentMode: .fit) .frame(width: 120) Text(Enter the world of Dhvani soundbath sessions, click lotus icon to play.) .font(.custom(Times New Roman, size: 20)) .lineLimit(nil) .multilineTextA
1
0
372
Nov ’24
SpriteKit: SKTileMap leaks with `SKTexture(rect: CGRect)` usage
Hello reader, I am facing an issue that I am not able to resolve. I have been able to create a demo project that demonstrates the issue, which I hope enables you to have a look as well and hopefully find a way to resolve it. What is the issue: I am using SKTileMapNode in order to draw tile maps. Instead of using the tilesets as you can use from within the Xcode editor, I prefer to do it all programmatically using tilesheets (for a plethora of reasons that I will leave out of this equation). This is the code of the gameScene: import SpriteKit import GameplayKit class GameScene: SKScene { private let tileSize = CGSize(width: 32, height: 32) override func didMove(to view: SKView) { super.didMove(to: view) let tileSet = createTileSet() let tileMap = SKTileMapNode(tileSet: tileSet, columns: 100, rows: 100, tileSize: tileSize) for column in 0.. SKTileSet { let tileSheetTexture = SKTexture(imageNamed: terrain) var tileGroups = [SKTileGroup]() let relativeTileSize = CGSize(width: tileSize.width/tile
2
0
768
Nov ’24
Potential Issue in "Display Distinct Layouts Per Section" Documentation Example
Hi everyone, I was exploring the Display Distinct Layouts Per Section section of the Apple documentation and noticed a potential issue in the example code provided. Specifically, in the createLayout method of the TwoColumnViewController in the sample project, the item size appears to be incorrectly described. The documentation states that the item size is ignored because the items are organized in columns, but in practice, the size is considered. When running the sample project without any modifications, the layout doesn't behave as described or expected. Here’s what I observed: The items are not displayed as intended in a two-column layout. Modifying the item size explicitly affects the layout, contrary to the documentation's claim that the size is ignored. This seems to be a mismatch between the documentation and the actual implementation. Could this be clarified or corrected? Has anyone else encountered this issue? If so, are there any recommended adjustments to the sample code to achieve
Topic: UI Frameworks SubTopic: UIKit
0
0
276
Nov ’24
Reply to App Icon Shows Black Background in iOS 18 Settings Dark Mode
Step-by-Step Guide to Fixing the Issue 1- Open Your Project in Xcode 16 or Higher Make sure you have updated to Xcode 16 to access the new features. 2- Navigate to the App Icon Asset In the project navigator, go to Assets.xcassets and select your AppIcon asset. 3- Add Appearance Options In the App Icon editor, you will see a new “Appearance” column. By default, this is set to “None.” Click the “+” icon and add both “Light” and “Dark” options. 4- Configure the Icons for Each Appearance For the “Light” appearance, use your existing app icons. For the “Dark” appearance, you can use the same icons as the Light mode. Simply copy the icons and paste them into the corresponding slots under the “Dark” column. 5- Test the Changes Run the app on a device with iOS 18 and toggle between Light and Dark modes to ensure the icons appear correctly in all scenarios, including the home screen and the iOS Settings app. 6- Build and Deploy Once you confirm that the app icon looks good in both modes, build and d
Nov ’24